diff options
Diffstat (limited to 'newlib/libc/stdlib/btowc.c')
-rw-r--r-- | newlib/libc/stdlib/btowc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/btowc.c b/newlib/libc/stdlib/btowc.c index ec6c291..354a1d6 100644 --- a/newlib/libc/stdlib/btowc.c +++ b/newlib/libc/stdlib/btowc.c @@ -23,7 +23,8 @@ btowc (int c) _REENT_CHECK_MISC(_REENT); - retval = __mbtowc (_REENT, &pwc, &b, 1, __locale_charset (), &mbs); + retval = __mbtowc (_REENT, &pwc, (const char *) &b, 1, + __locale_charset (), &mbs); if (retval != 0 && retval != 1) return WEOF; |