Browse Source

Fix typo in decode_leb128s

master
aolo2 3 years ago
parent
commit
99e8d75440
  1. 7
      dwarf.c

7
dwarf.c

@ -80,17 +80,14 @@ decode_leb128s(u8 *at, s32 *dest) @@ -80,17 +80,14 @@ decode_leb128s(u8 *at, s32 *dest)
while (1) {
byte = at[offset++];
result |= ((byte & 127) << shift);
shift += 7;
if ((byte & 128) == 0) {
break;
}
shift += 7;
}
if ((shift < size) && (byte & 128)) {
if ((shift < size) && (byte & 64)) {
result |= -(1 << shift);
}

Loading…
Cancel
Save