diff options
| author | gingerBill <bill@gingerbill.org> | 2020-11-25 16:19:56 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-11-25 16:19:56 +0000 |
| commit | dbaf4d24f6e67ec05e8640b037cd934121f125c5 (patch) | |
| tree | 68823947cecb81215d92210b839ceb4c84b0a0c5 /core/encoding/json | |
| parent | 9c1c9693f26114499d0fb37bb692291ede8fa7ea (diff) | |
Update package json for new map layout; Correct llvm-api includes for *nix
Diffstat (limited to 'core/encoding/json')
| -rw-r--r-- | core/encoding/json/marshal.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin index 92b18c9e3..4df827ad4 100644 --- a/core/encoding/json/marshal.odin +++ b/core/encoding/json/marshal.odin @@ -210,12 +210,12 @@ marshal_arg :: proc(b: ^strings.Builder, v: any) -> Marshal_Error { data := uintptr(entries.data) + uintptr(i*entry_size); header := cast(^Map_Entry_Header)data; - marshal_arg(b, any{rawptr(&header.key.key.val), info.key.id}); + key := rawptr(data + entry_type.offsets[2]); + value := rawptr(data + entry_type.offsets[3]); + marshal_arg(b, any{key, info.key.id}); write_string(b, ": "); - - value := data + entry_type.offsets[2]; - marshal_arg(b, any{rawptr(value), info.value.id}); + marshal_arg(b, any{value, info.value.id}); } } write_byte(b, '}'); |