diff options
| author | 2015-07-10 18:01:56 -0300 | |
|---|---|---|
| committer | 2015-07-10 18:43:40 -0300 | |
| commit | d7f9529bdd8b24701f8c1c2e62a52c8a7e908137 (patch) | |
| tree | bda9e6189fc24f66a605fbf55558cb816e2a40d8 /src/common/bit_field.h | |
| parent | Merge pull request #906 from aroulin/loader-format-specifier-warning (diff) | |
| download | yuzu-d7f9529bdd8b24701f8c1c2e62a52c8a7e908137.tar.gz yuzu-d7f9529bdd8b24701f8c1c2e62a52c8a7e908137.tar.xz yuzu-d7f9529bdd8b24701f8c1c2e62a52c8a7e908137.zip | |
Common: Fix mask generation in BitField
Fixes #913
Diffstat (limited to '')
| -rw-r--r-- | src/common/bit_field.h | 2 |
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; |