Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/btowc.c')
-rw-r--r--newlib/libc/stdlib/btowc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/btowc.c b/newlib/libc/stdlib/btowc.c
index ec6c29152..354a1d6e1 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;