1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

a separate scope for

This commit is contained in:
Alexander Medvednikov
2019-12-08 00:30:06 +03:00
parent dc2da1de98
commit 06a0f39f7b
2 changed files with 5 additions and 3 deletions

View File

@@ -106,9 +106,9 @@ fn (table mut Table) parse_cflag(cflag string, mod string) ?bool {
index = i
}
}
if i2 := flag.index(',') {
if index == -1 || i2 < index {
index = i2
if i := flag.index(',') {
if index == -1 || i < index {
index = i
}
}
if index != -1 && flag[index] == ` ` && flag[index+1] == `-` {