[compiler-rt] b850798 - [NFC][scudo] Fix sign-compare warning in test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 4 18:24:12 PDT 2021
Author: Vitaly Buka
Date: 2021-06-04T18:24:00-07:00
New Revision: b850798f11d3428d6edc22ad63b9cabe2e6baec1
URL: https://github.com/llvm/llvm-project/commit/b850798f11d3428d6edc22ad63b9cabe2e6baec1
DIFF: https://github.com/llvm/llvm-project/commit/b850798f11d3428d6edc22ad63b9cabe2e6baec1.diff
LOG: [NFC][scudo] Fix sign-compare warning in test
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp b/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
index 13c853f40e02..8726fc2e1710 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) {
More information about the llvm-commits
mailing list