summaryrefslogtreecommitdiff
path: root/lib/c-strcasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/c-strcasecmp.c')
-rw-r--r--lib/c-strcasecmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/c-strcasecmp.c b/lib/c-strcasecmp.c
index 3ac650f87c..1de04b7066 100644
--- a/lib/c-strcasecmp.c
+++ b/lib/c-strcasecmp.c
@@ -52,5 +52,5 @@ c_strcasecmp (const char *s1, const char *s2)
/* On machines where 'char' and 'int' are types of the same size, the
difference of two 'unsigned char' values - including the sign bit -
doesn't fit in an 'int'. */
- return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
+ return _GL_CMP (c1, c2);
}