Package: ddnet / 11.8-1

uchar.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/test/str.cpp b/src/test/str.cpp
index 1e75445d1..bf4caf083 100644
--- a/src/test/str.cpp
+++ b/src/test/str.cpp
@@ -67,7 +67,7 @@ TEST(Str, Utf8ToLower)
 	EXPECT_TRUE(str_utf8_comp_nocase("ÖlÜ", "ölüa") < 0); // NULL < a
 	EXPECT_TRUE(str_utf8_comp_nocase("ölüa", "ÖlÜ") > 0); // a < NULL
 
-	const char a[2] = {-128, 0};
+	const char a[2] = {(char) 0xff, 0};
 	const char b[2] = {0, 0};
 	EXPECT_TRUE(str_utf8_comp_nocase(a, b) > 0);
 	EXPECT_TRUE(str_utf8_comp_nocase(b, a) < 0);