From 88debe478855d020efb0f23a53960b79dc991d60 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sun, 1 Mar 2026 14:53:00 +0100 Subject: [PATCH] =?UTF-8?q?My=20IDE=20lied=20to=20me=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/dusk/endian.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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