Skip to content

Commit 9fd7e3e

Browse files
authored
builtin: fix tests for isnil for -prod or -W, after the recent new cast warning (#24531)
1 parent 89305aa commit 9fd7e3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/builtin/isnil_test.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ fn test_isnil_charptr() {
1414
}
1515

1616
fn test_isnil_intptr() {
17-
pi := &int(0)
17+
pi := &int(unsafe { nil })
1818
assert isnil(pi)
1919
}

0 commit comments

Comments
 (0)