diff options
author | Mitch Phillips <mitchp@google.com> | 2023-09-15 19:13:16 +0200 |
---|---|---|
committer | Mitch Phillips <mitchp@google.com> | 2023-09-15 19:14:29 +0200 |
commit | 79e96b2457fe4e1586effc36aab657c508c122cf (patch) | |
tree | 947917477e0f94978551fc5b8a32790aad8f1176 | |
parent | 003bcad9a8b21e15e3786a52b1dafa844075ab84 (diff) | |
download | llvm-79e96b2457fe4e1586effc36aab657c508c122cf.zip llvm-79e96b2457fe4e1586effc36aab657c508c122cf.tar.gz llvm-79e96b2457fe4e1586effc36aab657c508c122cf.tar.bz2 |
Fix-forward a -Wconversion scudo bug.
Related to fd1721d8609791c89102bd7f922fe92056535157, fix up a
signed-unsigned type comparison bug.
-rw-r--r-- | compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp b/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp index 05e8e52..6235505 100644 --- a/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp @@ -398,7 +398,7 @@ void MallInfoTest() { EXPECT_NE(P, nullptr); MI = mallinfo(); EXPECT_GE(MI.uordblks, Allocated + BypassQuarantineSize); - EXPECT_GT(MI.hblkhd, 0U); + EXPECT_GT(MI.hblkhd, static_cast<FieldType>(0)); FieldType Free = MI.fordblks; free(P); MI = mallinfo(); |