diff --git a/src/util/cd_image.cpp b/src/util/cd_image.cpp index 81d1821c3..6d0feeec8 100644 --- a/src/util/cd_image.cpp +++ b/src/util/cd_image.cpp @@ -507,7 +507,8 @@ u16 CDImage::SubChannelQ::ComputeCRC(const Data& data) for (u32 i = 0; i < 10; i++) value = crc16_table[(value >> 8) ^ data[i]] ^ (value << 8); - return ~(value >> 8) | (~(value) << 8); + value = ~value; + return (value >> 8) | (value << 8); } bool CDImage::SubChannelQ::IsCRCValid() const