Skip to content

Commit 77a59c3

Browse files
authored
[ctx_profile] Fix signed-ness in CtxInstrProfilingTest.cpp
Follow-up from `265953c`
1 parent cfdc2bc commit 77a59c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ TEST(ArenaTest, ZeroInit) {
1717
memset(Buffer, 1, 1024);
1818
Arena *A = new (Buffer) Arena(10);
1919
for (auto I = 0U; I < A->size(); ++I)
20-
EXPECT_EQ(A->pos()[I], 0);
21-
EXPECT_EQ(A->size(), 10);
20+
EXPECT_EQ(A->pos()[I], static_cast<char>(0));
21+
EXPECT_EQ(A->size(), 10U);
2222
}
2323

2424
TEST(ArenaTest, Basic) {

0 commit comments

Comments
 (0)