Browse Source

iconv: explicit cast to `unsigned char*`

Perform an explicit cast to prevent the corresponding compiler warning.

Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Frank Mehnert 8 months ago
parent
commit
d603dd5210
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libiconv/iconv.c

+ 1 - 1
libiconv/iconv.c

@@ -384,7 +384,7 @@ size_t iconv(iconv_t cd, char **restrict in, size_t *restrict inb, char **restri
 			if (c < 128) break;
 			else {
 				wchar_t wc;
-				l = utf8dec_wchar(&wc, *in, *inb);
+				l = utf8dec_wchar(&wc, (unsigned char*)(*in), *inb);
 				c = wc;
 			}
 			if (!l) l++;