revert order to avoid msvc 2015 unreferenced formal param error

This commit is contained in:
Qianqian Fang 2022-02-21 18:58:49 -05:00
parent 8dd4a61ad6
commit 8083430a7a
2 changed files with 2 additions and 2 deletions

View File

@ -1617,7 +1617,7 @@ class binary_writer
std::memcpy(vec.data(), &n, sizeof(NumberType));
// step 2: write array to output (with possible reordering)
if (is_little_endian != (OutputIsLittleEndian || use_bjdata))
if (is_little_endian != (use_bjdata || OutputIsLittleEndian))
{
// reverse byte order prior to conversion if necessary
std::reverse(vec.begin(), vec.end());

View File

@ -15441,7 +15441,7 @@ class binary_writer
std::memcpy(vec.data(), &n, sizeof(NumberType));
// step 2: write array to output (with possible reordering)
if (is_little_endian != (OutputIsLittleEndian || use_bjdata))
if (is_little_endian != (use_bjdata || OutputIsLittleEndian))
{
// reverse byte order prior to conversion if necessary
std::reverse(vec.begin(), vec.end());