From fadf591a32ddbcb533a48d560b2ad8f89cf1101f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 2 Oct 2016 13:19:39 +0200 Subject: [PATCH] gcc appeasement (overflow in constant conversion). --- src/util/unicode.test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/unicode.test.c b/src/util/unicode.test.c index dc33b02a8..f485808cb 100644 --- a/src/util/unicode.test.c +++ b/src/util/unicode.test.c @@ -18,7 +18,8 @@ static void test_unicode_tolower(CuTest * tc) static void test_unicode_utf8_to_other(CuTest *tc) { - const char utf8_str[] = { 0xc3, 0x98, 0xc5, 0xb8, 0xc2, 0x9d, 'l', 0 }; // ØŸl + const unsigned char uchar_str[] = { 0xc3, 0x98, 0xc5, 0xb8, 0xc2, 0x9d, 'l', 0 }; // ØŸl + utf8_t *utf8_str = (utf8_t *)uchar_str; unsigned char ch; size_t sz; CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str, &sz));