From 883a105acadba33b5f9afb200ff51ae6cb385227 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Fri, 27 Mar 2020 17:28:04 +1100 Subject: [PATCH] cgen: fix tests --- vlib/v/gen/tests/1.c | 2 +- vlib/v/gen/tests/3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");