diff options
| author | Despacito696969 <56641258+Despacito696969@users.noreply.github.com> | 2022-08-26 23:49:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-26 23:49:33 +0200 |
| commit | ecfea027a022abd2cabefe074375206ef0233120 (patch) | |
| tree | ee443e59ec8062b7ce13e55fe34eb3bd7ebf2756 | |
| parent | 96be4947306cbeb7fa792d5f36c40d8a3704e4c1 (diff) | |
Fixed marshal_to_writer not supporting i128
Previously json.marshal(i128(696969)) would print 0 as there was no `u = i128(i)` initialization.
| -rw-r--r-- | core/encoding/json/marshal.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin index 8cc814fcf..8f7749aba 100644 --- a/core/encoding/json/marshal.odin +++ b/core/encoding/json/marshal.odin @@ -85,6 +85,7 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err: case i16: u = u128(i) case i32: u = u128(i) case i64: u = u128(i) + case i128: u = u128(i) case int: u = u128(i) case u8: u = u128(i) case u16: u = u128(i) |