diff --git a/test/font.c b/test/font.c index d28e3a6..28904c6 100644 --- a/test/font.c +++ b/test/font.c @@ -80,8 +80,8 @@ int main(int argc, char *argv[]) if(__BYTE_ORDER == __BIG_ENDIAN) #else /* This is compile-time optimised with at least -O1 or -Os */ - uint32_t const rmask = 0x12345678; - if(*(uint8_t const *)&rmask == 0x12) + uint32_t const tmp = 0x12345678; + if(*(uint8_t const *)&tmp == 0x12) #endif d = cucul_create_dither(32, w, h, 4 * w, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000); diff --git a/test/text.c b/test/text.c index 60d0a05..03c9674 100644 --- a/test/text.c +++ b/test/text.c @@ -40,14 +40,14 @@ int main(void) cv = cucul_import_canvas(buffer, "text"); cucul_free_buffer(buffer); - buffer = cucul_export_canvas(cv, "ansi"); + buffer = cucul_export_canvas(cv, "utf8"); fwrite(cucul_get_buffer_data(buffer), cucul_get_buffer_size(buffer), 1, stdout); cucul_free_buffer(buffer); cucul_rotate(cv); - buffer = cucul_export_canvas(cv, "ansi"); + buffer = cucul_export_canvas(cv, "utf8"); fwrite(cucul_get_buffer_data(buffer), cucul_get_buffer_size(buffer), 1, stdout); cucul_free_buffer(buffer);