summaryrefslogtreecommitdiff
path: root/src/string/wcscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wcscmp.c')
-rw-r--r--src/string/wcscmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/wcscmp.c b/src/string/wcscmp.c
index 26eeee70..286ec3ea 100644
--- a/src/string/wcscmp.c
+++ b/src/string/wcscmp.c
@@ -3,5 +3,5 @@
int wcscmp(const wchar_t *l, const wchar_t *r)
{
for (; *l==*r && *l && *r; l++, r++);
- return *l - *r;
+ return *l < *r ? -1 : *l > *r;
}