mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Fix inverted condition in unsigned LEB128 decode
This commit is contained in:
parent
1993ccb456
commit
cfc5d146d3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue