gcc appeasement (overflow in constant conversion).

This commit is contained in:
Enno Rehling 2016-10-02 13:19:39 +02:00 committed by Enno Rehling
parent 103a946f41
commit 75aa795467
1 changed files with 2 additions and 1 deletions

View File

@ -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));