AK: Fix inverted condition in unsigned LEB128 decode

This commit is contained in:
Andreas Kling 2020-11-13 10:10:59 +01:00
parent 1993ccb456
commit cfc5d146d3
Notes: sideshowbarker 2024-07-19 01:24:50 +09:00

View file

@ -108,7 +108,7 @@ public:
const u8 byte = m_bytes[m_offset++];
result |= (byte & 0x7f) << shift;
if (byte & 0x80)
if ((byte & 0x80) == 0)
break;
shift += 7;
}