summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-10 23:02:56 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-10 23:43:41 +0200
commitd5b52805014f537082afae79dc212958295ca9dc (patch)
treebd28ec1751301349da62228f4e7c0439d4cc3d28 /src/common
parentCommon: Fix mask generation in BitField (diff)
downloadyuzu-d5b52805014f537082afae79dc212958295ca9dc.tar
yuzu-d5b52805014f537082afae79dc212958295ca9dc.tar.gz
yuzu-d5b52805014f537082afae79dc212958295ca9dc.tar.bz2
yuzu-d5b52805014f537082afae79dc212958295ca9dc.tar.lz
yuzu-d5b52805014f537082afae79dc212958295ca9dc.tar.xz
yuzu-d5b52805014f537082afae79dc212958295ca9dc.tar.zst
yuzu-d5b52805014f537082afae79dc212958295ca9dc.zip
Diffstat (limited to 'src/common')
-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 257d5577d..3bc53500d 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -160,7 +160,7 @@ public:
if (std::numeric_limits<T>::is_signed)
{
std::size_t shift = 8 * sizeof(T)-bits;
- return (T)(((storage & GetMask()) << (shift - position)) >> shift);
+ return (T)((storage << (shift - position)) >> shift);
}
else
{