From: Alex Brachet Date: Tue, 7 Mar 2023 17:49:22 +0000 (+0000) Subject: [libc] Fix integer conversion error in test X-Git-Tag: upstream/17.0.6~15609 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d05093a7cf1fb8353f374d7e91f7102e02b234c8;p=platform%2Fupstream%2Fllvm.git [libc] Fix integer conversion error in test --- diff --git a/libc/test/src/string/strerror_test.cpp b/libc/test/src/string/strerror_test.cpp index 3830e1b..20a8fba 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]); } }