[libc] Fix integer conversion error in test
authorAlex Brachet <abrachet@google.com>
Tue, 7 Mar 2023 17:49:22 +0000 (17:49 +0000)
committerAlex Brachet <abrachet@google.com>
Tue, 7 Mar 2023 17:49:47 +0000 (17:49 +0000)
libc/test/src/string/strerror_test.cpp

index 3830e1b..20a8fba 100644 (file)
@@ -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]);
   }
 }