diff --git a/vlib/v/tests/options/option_test.c.v b/vlib/v/tests/options/option_test.c.v index 8738d4c4f3..270a79a47a 100644 --- a/vlib/v/tests/options/option_test.c.v +++ b/vlib/v/tests/options/option_test.c.v @@ -251,9 +251,9 @@ fn test_opt_ptr() { else { } a := 3 - mut r := opt_ptr(&a) or { &int(0) } + mut r := opt_ptr(&a) or { unsafe { &int(0) } } assert r == &a - r = opt_ptr(&int(0)) or { return } + r = opt_ptr(unsafe { &int(0) }) or { return } assert false }