From d603dd52109d4f5c3f50aecebb0dbd47f6b16141 Mon Sep 17 00:00:00 2001 From: Frank Mehnert Date: Mon, 29 Jul 2024 13:56:54 +0200 Subject: iconv: explicit cast to `unsigned char*` Perform an explicit cast to prevent the corresponding compiler warning. Signed-off-by: Marcus Haehnel --- libiconv/iconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiconv') diff --git a/libiconv/iconv.c b/libiconv/iconv.c index 0462f6e10..ca92de8dd 100644 --- a/libiconv/iconv.c +++ b/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++; -- cgit v1.2.3