Do proper endian conversions

This fixes all testsuite failures on big endian hosts.
This commit is contained in:
Andreas Schwab 2019-02-21 11:55:21 +01:00
parent e326df211b
commit bb22b1003f
4 changed files with 6 additions and 7 deletions

View file

@ -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);
}