This commit is contained in:
twinaphex 2016-01-21 03:35:06 +01:00
parent ae2f6f06a0
commit 2e6f71ee6b

View File

@ -66,12 +66,12 @@ static uint64_t bps_decode(struct bps_data *bps)
for (;;)
{
uint8_t x = bps_read(bps);
data += (x & 0x7f) * shift;
uint8_t x = bps_read(bps);
data += (x & 0x7f) * shift;
if (x & 0x80)
break;
shift <<= 7;
data += shift;
shift <<= 7;
data += shift;
}
return data;