Skip to content

Commit 89fae60

Browse files
authored
builtin: fix recent cast warning for tests for map (fix compilation with -prod or -W) (#24532)
1 parent 11ee29c commit 89fae60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎vlib/builtin/map_test.v‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ fn test_various_map_value() {
222222
m17['test'] = u64(0)
223223
assert m17['test'] == u64(0)
224224
mut m18 := map[string]&int{}
225-
m18['test'] = &int(0)
226-
assert unsafe { m18['test'] } == &int(0)
225+
m18['test'] = &int(unsafe { nil })
226+
assert unsafe { m18['test'] } == &int(unsafe { nil })
227227
}
228228

229229
fn test_string_arr() {

0 commit comments

Comments
 (0)