diff --git a/vlib/v/gen/tests/1.c b/vlib/v/gen/tests/1.c index e3680e2415..6f8aae8b1d 100644 --- a/vlib/v/gen/tests/1.c +++ b/vlib/v/gen/tests/1.c @@ -148,7 +148,7 @@ multi_return_int_string multi_return() { void variadic(varg_int a) { int x = _const_path_sep; - int y = true ? 1 : 0; + int y = (true ? 1 : 0); } void ensure_cap(int required, int cap) { diff --git a/vlib/v/gen/tests/3.c b/vlib/v/gen/tests/3.c index 64e970c8b7..f385f865b3 100644 --- a/vlib/v/gen/tests/3.c +++ b/vlib/v/gen/tests/3.c @@ -34,7 +34,7 @@ void User_foo(User* u) { tos3(""), }), u->age); int a = 10; - if (a == 10 || a == 20 || a == 30) { + if ((a == 10 || a == 20 || a == 30)) { int b = 10; } string name = tos3("Bob");