summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 1f3ecf844..257d5577d 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -188,7 +188,7 @@ private:
188 188
189 __forceinline StorageType GetMask() const 189 __forceinline StorageType GetMask() const
190 { 190 {
191 return ((~(StorageTypeU)0) >> (8 * sizeof(T)-bits)) << position; 191 return (((StorageTypeU)~0) >> (8 * sizeof(T)-bits)) << position;
192 } 192 }
193 193
194 StorageType storage; 194 StorageType storage;