Skip to content

Commit

Permalink
Merge pull request #28 from ckuethe/fix_qr_endian_check
Browse files Browse the repository at this point in the history
Fix endianness test on Linux
  • Loading branch information
wcjohns authored Feb 5, 2024
2 parents b8ef695 + 0513429 commit bbeb08e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/QRSpectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,9 @@ vector<uint8_t> encode_stream_vbyte( const vector<uint32_t> &input )
static_assert( 0, "This function not tested in big-endian" );
#endif
#elif defined(__GNUC__) || defined(__GNUG__)
static_assert(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__, "This function not tested in big-endian" );
static_assert(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__, "This function not tested in big-endian" );
#elif defined(_MSC_VER)
// not sure, but not to worried
// not sure, but not too worried
#endif
static_assert( boost::endian::order::native == boost::endian::order::little, "This function not tested in big-endian" );

Expand Down Expand Up @@ -1082,7 +1082,7 @@ size_t decode_stream_vbyte( const T * const input_begin, const size_t nbytes, ve
static_assert( 0, "This function not tested in big-endian" );
#endif
#elif defined(__GNUC__) || defined(__GNUG__)
static_assert(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__, "This function not tested in big-endian" );
static_assert(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__, "This function not tested in big-endian" );
#elif defined(_MSC_VER)
// not sure, but not to worried
#endif
Expand Down

0 comments on commit bbeb08e

Please sign in to comment.