`mruby-pack` should not rely on `MRB_ENDIAN_BIG` macro; fix #4190
The `MRB_ENDIAN_BIG` macro is originally used for `NaN` boxing. We cannot assume it is defined on every big endian platform (#4190 is the case). So instead of relying on untrusted `MRB_ENDIAN_BIG`, we use `BYTE_ORDER` macro with a fallback function to check endian in runtime.
Showing
Please register or sign in to comment