From 0e7355e8b83a2a3dd4b01e18ef0044e509084035 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Jan 2019 15:59:51 +0100 Subject: Fix various sign conversion warnings --- tests/serd_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/serd_test.c b/tests/serd_test.c index 797a489a..92d23aae 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -566,9 +566,9 @@ main(void) } // Write statements with bad UTF-8 (should be replaced) - const char bad_str[] = { (char)0xFF, (char)0x90, 'h', 'i', 0 }; - SerdNode* bad_lit = serd_new_string(bad_str); - SerdNode* bad_uri = serd_new_uri(bad_str); + const uint8_t bad_str[] = { 0xFF, 0x90, 'h', 'i', 0 }; + SerdNode* bad_lit = serd_new_string((const char*)bad_str); + SerdNode* bad_uri = serd_new_uri((const char*)bad_str); assert(!serd_sink_write(iface, 0, s, p, bad_lit, 0)); assert(!serd_sink_write(iface, 0, s, p, bad_uri, 0)); serd_node_free(bad_uri); -- cgit v1.2.1