mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Correct fmt printing to be robust
This commit is contained in:
+2
-2
@@ -2085,8 +2085,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
|||||||
}
|
}
|
||||||
j += 1
|
j += 1
|
||||||
|
|
||||||
key := ks + bucket_index*uintptr(info.key.size)
|
key := runtime.map_cell_index_dynamic(ks, &info.map_info.ks, bucket_index)
|
||||||
value := vs + bucket_index*uintptr(info.value.size)
|
value := runtime.map_cell_index_dynamic(vs, &info.map_info.vs, bucket_index)
|
||||||
|
|
||||||
fmt_arg(&Info{writer = fi.writer}, any{rawptr(key), info.key.id}, 'v')
|
fmt_arg(&Info{writer = fi.writer}, any{rawptr(key), info.key.id}, 'v')
|
||||||
io.write_string(fi.writer, "=", &fi.n)
|
io.write_string(fi.writer, "=", &fi.n)
|
||||||
|
|||||||
Reference in New Issue
Block a user