hash-functions: Avoid signed integer overflow.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Oct 2018 19:31:52 +0000 (12:31 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 14 Oct 2018 19:33:26 +0000 (12:33 -0700)
commit77ccca8a4264f354b6f3b4e859fd3b82bba2ce84
treea98d0fc27514326da326ac7fb1d0badeac475a4a
parente2f53f8dd97ca2177a60f7c7e7d785d8e3e7faaa
hash-functions: Avoid signed integer overflow.

cppcheck reported that 0xdeadbeef + 8 yielded signed integer overflow.
This is probably harmless, as long as the compiler doesn't do something
really strange, but it's even better if we just ensure that this
arithmetic is done as unsigned.

Reported by John Darrington.
src/libpspp/hash-functions.c