summaryrefslogtreecommitdiff
path: root/libiconv/iconv.c
diff options
context:
space:
mode:
authorFrank Mehnert <frank.mehnert@kernkonzept.com>2024-07-29 13:56:54 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-07-30 02:36:47 +0200
commitd603dd52109d4f5c3f50aecebb0dbd47f6b16141 (patch)
tree961a51614da7b85b4902a9ecdd1b9df3538624cf /libiconv/iconv.c
parent8a08df05966730f4fb2d5d95434e75a09a13f696 (diff)
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>
Diffstat (limited to 'libiconv/iconv.c')
-rw-r--r--libiconv/iconv.c2
1 files changed, 1 insertions, 1 deletions
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++;