diff --git a/src/beast/modules/beast_crypto/math/UnsignedIntegerCalc.h b/src/beast/modules/beast_crypto/math/UnsignedIntegerCalc.h index 74afd7cb8f..e714c0895b 100644 --- a/src/beast/modules/beast_crypto/math/UnsignedIntegerCalc.h +++ b/src/beast/modules/beast_crypto/math/UnsignedIntegerCalc.h @@ -137,8 +137,8 @@ public: while (lo < hi) { std::swap (*lo, *hi); - *lo++ = toNetworkByteOrder (*lo); - *hi-- = toNetworkByteOrder (*hi); + *lo = toNetworkByteOrder (*lo); ++lo; + *hi = toNetworkByteOrder (*hi); --hi; } if (lo == hi) *lo = toNetworkByteOrder (*lo);