You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't look like the problem is that it thinks the bit_set is big endian, it looks like the logic for when to swap bytes is wrong.
do_byte_swap := !reflect.bit_set_is_big_endian(v)
This swaps the bytes whenever the bit_set isn't big endian--meaning it always makes the bit_set big endian swaps the bytes when the bit set is little endian, regardless of the platform. Seems like it should be:
Context
Expected Behavior
Current Behavior
Notes
cbor
worksbyte_swap
s atOdin/core/encoding/json/unmarshal.odin
Lines 130 to 136 in 6572a52
, because it's hitting
case .Platform: return ODIN_ENDIAN == .Big
and thinks it's big endianOdin/core/reflect/reflect.odin
Line 1021 in 6572a52
Odin: dev-2025-01:bca016ae9
OS: Windows 11 Professional (version: 23H2), build 22631.4751
CPU: AMD Ryzen 7 3700X 8-Core Processor
RAM: 65457 MiB
Backend: LLVM 18.1.8
The text was updated successfully, but these errors were encountered: