summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:
__forceinline StorageType GetMask() const
{
- return ((~(StorageTypeU)0) >> (8 * sizeof(T)-bits)) << position;
+ return (((StorageTypeU)~0) >> (8 * sizeof(T)-bits)) << position;
}
StorageType storage;