From: Vitaly Buka Date: Sat, 5 Jun 2021 01:22:32 +0000 (-0700) Subject: [NFC][scudo] Fix sign-compare warning in test X-Git-Tag: llvmorg-14-init~4800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b850798f11d3428d6edc22ad63b9cabe2e6baec1;p=platform%2Fupstream%2Fllvm.git [NFC][scudo] Fix sign-compare warning in test --- diff --git a/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp b/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp index 13c853f..8726fc2 100644 --- a/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp @@ -74,7 +74,7 @@ TEST_F(MemtagTest, ExtractTag) { // expected range. for (u64 Top = 0; Top < 0x100; ++Top) Tags = Tags | (1u << extractTag(Addr | (Top << 56))); - EXPECT_EQ(0xffff, Tags); + EXPECT_EQ(0xffffull, Tags); } TEST_F(MemtagTest, AddFixedTag) {