Fixed marshal_to_writer not supporting i128

Previously json.marshal(i128(696969)) would print 0 as there was no `u = i128(i)` initialization.
This commit is contained in:
Despacito696969
2022-08-26 23:49:33 +02:00
committed by GitHub
parent 96be494730
commit ecfea027a0

View File

@@ -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)