From 2138da806eadb5679feeb54351bcc0c10add93cb Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Fri, 27 Mar 2026 13:38:19 -0500 Subject: [PATCH] chore: fix cast conformance in C++23 --- core/unicode_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/unicode_test.cpp b/core/unicode_test.cpp index c16bd2b5a..cb2e41d55 100644 --- a/core/unicode_test.cpp +++ b/core/unicode_test.cpp @@ -105,7 +105,8 @@ TEST(Unicode, TestUTF8RoundTripExhaustive) size_t at = 0; char32_t y = decode_utf8(buffer, at); EXPECT_NE(y, JSONNET_CODEPOINT_ERROR) << "UTF-8 roundtrip failed for codepoint " << x << " decode rejects" << std::endl; - EXPECT_EQ(x, y) << "UTF-8 roundtrip failed for codepoint " << x << " converts to " << y << std::endl; + EXPECT_EQ(x, y) << "UTF-8 roundtrip failed for codepoint " << static_cast(x) + << " converts to " << static_cast(y) << std::endl; EXPECT_EQ(at, buffer.size() - 1) << "UTF-8 roundtrip failed for codepoint " << x << " decodes incorrect length" << std::endl; } }