diff --git a/modules/beast_crypto/math/UnsignedIntegerCalc.h b/modules/beast_crypto/math/UnsignedIntegerCalc.h index 74afd7cb8..e714c0895 100644 --- a/modules/beast_crypto/math/UnsignedIntegerCalc.h +++ b/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);