From 9866675bb77beb24ee993360b748fb40e49f9512 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Sat, 6 May 2017 10:55:10 +0200
Subject: Fix broken toupper_ascii()
Update copyright years.
---
liberty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'liberty.c')
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)
--
cgit v1.2.3