Fix undefined behaviour when left-shifting signed integers.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 12 Jul 2015 10:33:07 +0000 (12:33 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 12 Jul 2015 10:33:07 +0000 (12:33 +0200)
commitb396585383fe12c890ef7953efaa13a83963b5d7
treefc4dc13c7f1c015b49a78f5335e156c9eaa26944
parentde7d9ee437bc0e5d72f8c6744e1df7ea7b64d2e9
Fix undefined behaviour when left-shifting signed integers.

Found by -fsanitize=undefined.
src/hash.c