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/ctype/toupper.c')
-rw-r--r--newlib/libc/ctype/toupper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/ctype/toupper.c b/newlib/libc/ctype/toupper.c
index 1b298d508..2527a69d3 100644
--- a/newlib/libc/ctype/toupper.c
+++ b/newlib/libc/ctype/toupper.c
@@ -66,7 +66,7 @@ _DEFUN(toupper,(c),int c)
wchar_t wc;
if (mbtowc (&wc, s, 1) >= 0
&& wctomb (s, (wchar_t) towupper ((wint_t) wc)) == 1)
- c = s[0];
+ c = (unsigned char) s[0];
}
return c;
#else