From d05093a7cf1fb8353f374d7e91f7102e02b234c8 Mon Sep 17 00:00:00 2001 From: Alex Brachet Date: Tue, 7 Mar 2023 17:49:22 +0000 Subject: [PATCH] [libc] Fix integer conversion error in test --- libc/test/src/string/strerror_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/test/src/string/strerror_test.cpp b/libc/test/src/string/strerror_test.cpp index 3830e1b6c01d8..20a8fba6f30fb 100644 --- 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(i)), message_array[i]); } }