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/string/wcsncmp.c')
-rw-r--r--newlib/libc/string/wcsncmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/newlib/libc/string/wcsncmp.c b/newlib/libc/string/wcsncmp.c
index 1ced7e165..48cb96c25 100644
--- a/newlib/libc/string/wcsncmp.c
+++ b/newlib/libc/string/wcsncmp.c
@@ -80,9 +80,7 @@ _DEFUN (wcsncmp, (s1, s2, n),
{
if (*s1 != *s2++)
{
- /* XXX assumes wchar_t = short */
- return (*(_CONST unsigned short *) s1 -
- *(_CONST unsigned short *) --s2);
+ return (*s1 - *--s2);
}
if (*s1++ == 0)
break;