summaryrefslogtreecommitdiff
path: root/src/common/bit_field.h
diff options
context:
space:
mode:
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:
180 } 180 }
181 181
182 constexpr void Assign(const T& value) { 182 constexpr void Assign(const T& value) {
183 storage = (static_cast<StorageType>(storage) & ~mask) | FormatValue(value); 183 storage = static_cast<StorageType>((storage & ~mask) | FormatValue(value));
184 } 184 }
185 185
186 constexpr T Value() const { 186 constexpr T Value() const {