From 4850a805802a62d6a8d566e10d2bc15f5b3a2e6a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 8 Jul 2019 04:30:32 +0000 Subject: [PATCH] Address GCC warnings about signedness and staticness. --- src/encode/utf8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encode/utf8.c b/src/encode/utf8.c index 94daa78948..ab1a25c2f4 100644 --- a/src/encode/utf8.c +++ b/src/encode/utf8.c @@ -139,7 +139,7 @@ char* utf8_normalize_str(char* str) return str; } -static bool unicode_is_zerowidth(uint32_t u) +bool unicode_is_zerowidth(uint32_t u) { switch(u) { case 0x200B: // ZERO WIDTH SPACE @@ -223,7 +223,7 @@ int cp437_to_utf8_str(const char* str, char* dest, size_t maxlen, unsigned char { int retval = 0; size_t outlen = 0; - for(const unsigned char* p = str; *p != 0; p++) { + for(const unsigned char* p = (const unsigned char*)str; *p != 0; p++) { if(outlen >= maxlen) { retval = -1; break; -- GitLab