aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 2418547ebb..5efd57e439 100644
--- a/st.c
+++ b/st.c
@@ -842,7 +842,7 @@ strcasehash(register const char *string)
*/
while (*string) {
unsigned int c = (unsigned char)*string++;
- if ((unsigned int)(c - 'A') > ('Z' - 'A')) c += 'a' - 'A';
+ if ((unsigned int)(c - 'A') <= ('Z' - 'A')) c += 'a' - 'A';
hval ^= c;
/* multiply by the 32 bit FNV magic prime mod 2^32 */