summaryrefslogtreecommitdiff
path: root/src/common/bit_field.h
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2020-04-24 09:27:51 +0200
committerMarkus Wick <markus@selfnet.de>2020-04-24 09:33:04 +0200
commitc499c22cf749e49d223b653b036e560a618bb6e2 (patch)
tree1d6e722109d5d9e7e83339ff14533af8ec46296a /src/common/bit_field.h
parent8f548266cd0493a537ed7edf56c869bd7420953a (diff)
Fix -Werror=conversion error.
Diffstat (limited to 'src/common/bit_field.h')
-rw-r--r--src/common/bit_field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index fd2bbbd99..26ae6c7fc 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -180,7 +180,7 @@ public:
}
constexpr void Assign(const T& value) {
- storage = (static_cast<StorageType>(storage) & ~mask) | FormatValue(value);
+ storage = static_cast<StorageType>((storage & ~mask) | FormatValue(value));
}
constexpr T Value() const {