[scudo/standalone] Fix undefined behavior in checksum test
authorRoland McGrath <mcgrathr@google.com>
Sat, 19 Sep 2020 18:44:39 +0000 (11:44 -0700)
committerRoland McGrath <mcgrathr@google.com>
Sat, 19 Sep 2020 19:28:00 +0000 (12:28 -0700)
commitf5fa5b9fe3b02f26b38612f96cba19aceccbc2a3
treeac7261d234fbf6ed9e9419f4bda33e4693e23529
parenta2f9098f7ab67f44246b412771b0003901138b5d
[scudo/standalone] Fix undefined behavior in checksum test

1U has type unsigned int, and << of 32 or more is undefined behavior.
Use the proper type in the lhs of the shift.

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D87973
compiler-rt/lib/scudo/standalone/tests/checksum_test.cpp