Merge pull request #1489 from andreas-schwab/develop

Do proper endian conversions
This commit is contained in:
Niels Lohmann authored and GitHub committed 2019-03-13 11:57:58 +01:00
commit c6fc902184
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);
}