forked from github/server
gcc appeasement (overflow in constant conversion).
This commit is contained in:
parent
693f1be6d1
commit
fadf591a32
|
@ -18,7 +18,8 @@ static void test_unicode_tolower(CuTest * tc)
|
||||||
|
|
||||||
static void test_unicode_utf8_to_other(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;
|
unsigned char ch;
|
||||||
size_t sz;
|
size_t sz;
|
||||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str, &sz));
|
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str, &sz));
|
||||||
|
|
Loading…
Reference in New Issue