From 7069cd6ab5dd327ff5adabf1e6763f94297d398b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 8 Dec 2019 00:45:42 +0300 Subject: [PATCH] a separate scope for x := opt, part 2 --- vlib/compiler/cflags.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/compiler/cflags.v b/vlib/compiler/cflags.v index fe1fa9ba2e..cc0dae78c7 100644 --- a/vlib/compiler/cflags.v +++ b/vlib/compiler/cflags.v @@ -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] == `-` {