diff --git a/compiler-rt/lib/scudo/standalone/tests/checksum_test.cpp b/compiler-rt/lib/scudo/standalone/tests/checksum_test.cpp --- a/compiler-rt/lib/scudo/standalone/tests/checksum_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/checksum_test.cpp @@ -1,4 +1,5 @@ -//===-- checksum_test.cpp ---------------------------------------*- C++ -*-===// +> //===-- checksum_test.cpp ---------------------------------------*- C++ + //-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -41,10 +42,10 @@ scudo::u8 IdenticalChecksums = 0; for (scudo::uptr I = 0; I < ArraySize; I++) { for (scudo::uptr J = 0; J < SCUDO_WORDSIZE; J++) { - Array[I] ^= 1U << J; + Array[I] ^= scudo::uptr{1} << J; if (F(Seed, Array, ArraySize) == Reference) IdenticalChecksums++; - Array[I] ^= 1U << J; + Array[I] ^= scudo::uptr{1} << J; } } // Allow for a couple of identical checksums over the whole set of flips.