aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-15 17:53:18 +0000
committergingerBill <bill@gingerbill.org>2022-01-15 17:53:18 +0000
commitf0529535e02ab175bca3f7ff8c3bc2112d949236 (patch)
tree055c4369c5eb25decf656f53a19a0c022d57e98f /core/encoding
parent3f59c45740403e538a23f50c2fe4cd25e815531b (diff)
`ODIN_ENDIAN` changed to an enum constant; `ODIN_ENUM_STRING` is the new string version of the old constant
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/json/marshal.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin
index adbcb95be..aa1c1559c 100644
--- a/core/encoding/json/marshal.odin
+++ b/core/encoding/json/marshal.odin
@@ -285,8 +285,8 @@ marshal_to_writer :: proc(w: io.Writer, v: any) -> (err: Marshal_Error) {
case runtime.Type_Info_Integer:
switch info.endianness {
case .Platform: return false
- case .Little: return ODIN_ENDIAN != "little"
- case .Big: return ODIN_ENDIAN != "big"
+ case .Little: return ODIN_ENDIAN != .Little
+ case .Big: return ODIN_ENDIAN != .Big
}
}
return false