Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Common: Remove redundant masking in BitField

Yuri Kunde Schlesnerd5b52805014f
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 257d5577d4..3bc53500d8 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
{