From 5c2151f9697ad897b336e3732d8b6df82803658e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 4 Jul 2016 03:19:34 +0200 Subject: utf8: fix test data type --- tests/check_utf8.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/check_utf8.c b/tests/check_utf8.c index 9f98886..9f8c244 100644 --- a/tests/check_utf8.c +++ b/tests/check_utf8.c @@ -77,14 +77,14 @@ test_utf8_invalid_str(void **state) static void test_utf8_skip_bom(void **state) { - const char c[4] = {0xef, 0xbb, 0xbf, 0}; + const uint8_t c[4] = {0xef, 0xbb, 0xbf, 0}; assert_int_equal(blogc_utf8_skip_bom(c, 2), 0); assert_int_equal(blogc_utf8_skip_bom(c, 3), 3); assert_string_equal(c + 3, ""); - const char d[8] = {0xef, 0xbb, 0xbf, 'b', 'o', 'l', 'a', 0}; + const uint8_t d[8] = {0xef, 0xbb, 0xbf, 'b', 'o', 'l', 'a', 0}; assert_int_equal(blogc_utf8_skip_bom(d, 8), 3); assert_string_equal(d + 3, "bola"); - const char e[5] = "bola"; + const uint8_t e[5] = "bola"; assert_int_equal(blogc_utf8_skip_bom(e, 4), 0); } -- cgit v1.2.3-18-g5258