From c62a91ac2b5c7914b7601bf7381ae2f034539083 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sun, 28 Jan 2018 14:45:39 +0100 Subject: [PATCH] fixed message flags |= and &= operations --- src/util/flagsenum.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/flagsenum.h b/src/util/flagsenum.h index d8e4c2988..a6301db00 100644 --- a/src/util/flagsenum.h +++ b/src/util/flagsenum.h @@ -38,15 +38,15 @@ public: } inline T &operator|=(const Q &a) { - return (T &)((Q &)a |= (Q)this->value); + return (T &)((Q &)this->value |= (Q)a); } inline T &operator&=(const Q &a) { - return (T &)((Q &)a &= (Q)this->value); + return (T &)((Q &)this->value &= (Q)a); } inline T &operator^=(const Q &a) { - return (T &)((Q &)a ^= (Q)this->value); + return (T &)((Q &)this->value ^= (Q)a); } T value;