summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/wcscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/wcscmp.c')
-rw-r--r--newlib/libc/string/wcscmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/string/wcscmp.c b/newlib/libc/string/wcscmp.c
index 01ccf926c..279f3a90c 100644
--- a/newlib/libc/string/wcscmp.c
+++ b/newlib/libc/string/wcscmp.c
@@ -78,6 +78,5 @@ _DEFUN (wcscmp, (s1, s2),
while (*s1 == *s2++)
if (*s1++ == 0)
return (0);
- /* XXX assumes wchar_t = short */
- return (*(_CONST unsigned short *) s1 - *(_CONST unsigned short *) --s2);
+ return (*s1 - *--s2);
}