Do proper endian conversions

This fixes all testsuite failures on big endian hosts.
This commit is contained in:
Andreas Schwab committed 2019-02-25 12:09:13 +01:00
1 parent e326df211b
commit bb22b1003f
4 files changed
+6 -7

No files matched your search

@@ -1853,7 +1853,7 @@ class binary_reader
}
// reverse byte order prior to conversion if necessary
if (is_little_endian && !InputIsLittleEndian)
if (is_little_endian != InputIsLittleEndian)
{
vec[sizeof(NumberType) - i - 1] = static_cast<uint8_t>(current);
}