diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-09 13:01:58 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-09 13:01:58 +0000 |
commit | a79016198c859a3388584ac7782d760f349e2d67 (patch) | |
tree | ad74465aca5c92984b7314970818cbb775dc80c3 /libc/string | |
parent | d673a24ff2e988888cabfd37d48dc72cbada95a5 (diff) |
Fix some locale multibyte tests failures ad below:
libc/stdlib/_strtod.c -> tst_wcstod;
libc/stdlib/stdlib.c -> tst_mblen, tst_mbtowc, tst_wctomb;
libc/stdio/_scanf.c -> tst_swscanf;
libc/string/strncmp.c -> tst_wcsncmp;
libc/misc/wchar/wchar.c -> tst_mbrlen, tst_mbrtowc, tst_wcswidth.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/strncmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/strncmp.c b/libc/string/strncmp.c index 84a2bd512..59e4a2c22 100644 --- a/libc/string/strncmp.c +++ b/libc/string/strncmp.c @@ -25,7 +25,7 @@ int Wstrncmp(register const Wchar *s1, register const Wchar *s2, size_t n) --n; } - return (n == 0) ? 0 : ((*((Wuchar *)s1) < *((Wuchar *)s2)) ? -1 : 1); + return (n == 0) ? 0 : (*((Wuchar *)s1) - *((Wuchar *)s2)); #else int r = 0; |