Skip to content

Commit

Permalink
CLEANUP: workaround for an UBSAN error
Browse files Browse the repository at this point in the history
UBSAN complained about a left shift of -1
  • Loading branch information
mgondan authored and JanWielemaker committed May 4, 2024
1 parent 321ea1c commit bcca31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pl-qlf.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ getMagicString(IOSTREAM *fd, char *buf, int maxlen)

static inline uint64_t
zigzag_encode(int64_t n)
{ return (n << 1) ^ (n >> 63);
{ return ((uint64_t)n << 1) ^ (n >> 63);
}


Expand Down

0 comments on commit bcca31e

Please sign in to comment.