aboutsummaryrefslogtreecommitdiff
path: root/liberty.c
diff options
context:
space:
mode:
Diffstat (limited to 'liberty.c')
-rw-r--r--liberty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liberty.c b/liberty.c
index da95482..9848c1b 100644
--- a/liberty.c
+++ b/liberty.c
@@ -2639,7 +2639,7 @@ tolower_ascii (int c)
static int
toupper_ascii (int c)
{
- return c >= 'A' && c <= 'Z' ? c : c - ('a' - 'A');
+ return c >= 'a' && c <= 'z' ? c - ('a' - 'A') : c;
}
TRIVIAL_STRXFRM (tolower_ascii_strxfrm, tolower_ascii)