projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622702d
)
[libc] Fix integer conversion error in test
author
Alex Brachet
<abrachet@google.com>
Tue, 7 Mar 2023 17:49:22 +0000
(17:49 +0000)
committer
Alex Brachet
<abrachet@google.com>
Tue, 7 Mar 2023 17:49:47 +0000
(17:49 +0000)
libc/test/src/string/strerror_test.cpp
patch
|
blob
|
history
diff --git
a/libc/test/src/string/strerror_test.cpp
b/libc/test/src/string/strerror_test.cpp
index
3830e1b
..
20a8fba
100644
(file)
--- a/
libc/test/src/string/strerror_test.cpp
+++ b/
libc/test/src/string/strerror_test.cpp
@@
-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]);
}
}