forked from github/server
gcc appeasement (overflow in constant conversion).
This commit is contained in:
parent
103a946f41
commit
75aa795467
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue