diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-09-04 18:17:55 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-09-04 18:17:55 +0000 |
commit | ca3a1a6b670e5026c3a1d7435d78e90eb9212616 (patch) | |
tree | 643d40a6bf25ece960725502cfa68243b1385655 /newlib/libc/string/wcsncmp.c | |
parent | efa077ce22ce17d6bfd6045e337121b0ff01935a (diff) | |
download | cygnal-ca3a1a6b670e5026c3a1d7435d78e90eb9212616.tar.gz cygnal-ca3a1a6b670e5026c3a1d7435d78e90eb9212616.tar.bz2 cygnal-ca3a1a6b670e5026c3a1d7435d78e90eb9212616.zip |
2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
* libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
__WCHAR_MAX__ or 0x7fffffffu.
* libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
* libc/string/wcsncmp.c: Ditto.
Diffstat (limited to 'newlib/libc/string/wcsncmp.c')
-rw-r--r-- | newlib/libc/string/wcsncmp.c | 4 |
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; |