Skip to content

Commit

Permalink
[libc] Fix integer conversion error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
abrachet committed Mar 7, 2023
1 parent 622702d commit d05093a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/test/src/string/strerror_test.cpp
Expand Up @@ -150,7 +150,7 @@ TEST(LlvmLibcStrErrorTest, KnownErrors) {
};

for (size_t i = 0; i < (sizeof(message_array) / sizeof(char *)); ++i) {
EXPECT_STREQ(__llvm_libc::strerror(i), message_array[i]);
EXPECT_STREQ(__llvm_libc::strerror(static_cast<int>(i)), message_array[i]);
}
}

Expand Down

0 comments on commit d05093a

Please sign in to comment.