Debian Codegraph @

debian/patches/0003-upstream-gcc-16.patch

raw
1 Description: chore: fix cast conformance in C++23
2 Author: Pat Riehecky <[email protected]>
3 Origin: upstream, https://github.com/google/jsonnet/pull/1310
4
5 --- a/core/unicode_test.cpp
6 +++ b/core/unicode_test.cpp
7 @@ -105,7 +105,8 @@ TEST(Unicode, TestUTF8RoundTripExhaustive)
8 size_t at = 0;
9 char32_t y = decode_utf8(buffer, at);
10 EXPECT_NE(y, JSONNET_CODEPOINT_ERROR) << "UTF-8 roundtrip failed for codepoint " << x << " decode rejects" << std::endl;
11 - EXPECT_EQ(x, y) << "UTF-8 roundtrip failed for codepoint " << x << " converts to " << y << std::endl;
12 + EXPECT_EQ(x, y) << "UTF-8 roundtrip failed for codepoint " << static_cast<uint32_t>(x)
13 + << " converts to " << static_cast<uint32_t>(y) << std::endl;
14 EXPECT_EQ(at, buffer.size() - 1) << "UTF-8 roundtrip failed for codepoint " << x << " decodes incorrect length" << std::endl;
15 }
16 }