New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug on solaris #717
Comments
Endianness issue? |
11,739,859 = 0xB322D3 doesn't look like it. Oh, the digits are swapped. 1173 -> 3711, 9859 -> 9589. json/include/boost/json/detail/sse2.hpp Lines 337 to 342 in 4797be3
BOOST_JSON_BIG_ENDIAN isn't being set correctly (that is, at all). See here for the logic for detecting endianness: https://github.com/boostorg/endian/blob/develop/include/boost/endian/detail/order.hpp |
We'll just add a dependency on Endian |
Why? Just define the macro in config.hpp properly.
|
As a workaround for now the user can set the macro when building the lib |
After defining "BOOST_JSON_BIG_ENDIAN" in "config.hpp", the problem was solved. Thank you for your help. |
When parsing the int field information in JSON message on Solaris, the value obtained is incorrect. The order of the numbers is chaotic.
Here are some codes.
"recvMsg " is a JSON string that needs to be parsed.
The correct value is 11739859, but the actual value is 37119589. The order of numbers has changed.
We tested normally on windows10 (with MSVC v143), but there was a problem on Solaris 11.4.42.111.0.(sparcv9 ,with GCC v11.2.0).
We tested 1_ 78_ 0 and 1_ 79_ 0, their performance is the same.
The text was updated successfully, but these errors were encountered: