Skip to content

Commit

Permalink
fix for zarith amounts that do not fit in a signed int32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Hartzell committed Sep 3, 2018
1 parent 91260be commit 8edf13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static inline uint64_t parse_z(const void *data, size_t *ix, size_t length, uint
uint64_t acc = 0;
uint64_t shift = 0;
while (true) {
uint8_t byte = next_byte(data, ix, length, lineno);
uint64_t byte = next_byte(data, ix, length, lineno);
acc |= (byte & 0x7F) << shift;
shift += 7;
if (!(byte & 0x80)) {
Expand Down

0 comments on commit 8edf13d

Please sign in to comment.