From 525639b42ffb10b6d6637c5103e0b95a28237f38 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Fri, 20 Mar 2020 14:24:18 +1100 Subject: [PATCH] cgen: fix tests after array.first fix --- vlib/v/gen/tests/1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/tests/1.c b/vlib/v/gen/tests/1.c index 3f65b6cba2..006633a3ea 100644 --- a/vlib/v/gen/tests/1.c +++ b/vlib/v/gen/tests/1.c @@ -101,7 +101,7 @@ i < 10; i++) { bool q = true || false; bool b2 = (*(bool*)array_get(bools, 0)) || true; bool b3 = get_bool() || true; - int f = array_first(nums); + int f = *(int*)array_first(nums); array_int c = array_clone(&nums); string d = tos3("d"); println(string_add(s, d));