Cast to avoid warnings on 32-bit architectures. GitHub issue 4597.

This commit is contained in:
Nicholas Marriott
2025-10-29 08:47:45 +00:00
parent ff6eefd7c7
commit f812b8d304

View File

@@ -48,7 +48,7 @@ utf8proc_mbtowc(wchar_t *pwc, const char *s, size_t n)
* *pwc == -1 indicates invalid codepoint
* slen < 0 indicates an error
*/
slen = utf8proc_iterate(s, n, pwc);
slen = utf8proc_iterate(s, n, (utf8proc_int32_t*)pwc);
if (*pwc == (wchar_t)-1 || slen < 0)
return (-1);
return (slen);