diff --git a/include/dusk/endian.h b/include/dusk/endian.h index a105ec134e..03a6665545 100644 --- a/include/dusk/endian.h +++ b/include/dusk/endian.h @@ -85,13 +85,13 @@ struct BE { // post-ops T operator--(int) { T orig = inner; - this -= 1; + *this -= 1; return swap(orig); } T operator++(int) { T orig = inner; - this += 1; + *this += 1; return swap(orig); } @@ -119,6 +119,7 @@ constexpr BE& operator op(BE& a, TB b) { \ BIN_ASSIGN_OP(&=); BIN_ASSIGN_OP(|=); BIN_ASSIGN_OP(+=); +BIN_ASSIGN_OP(-=); BIN_ASSIGN_OP(/=); #undef BIN_ASSIGN_OP