summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regcomp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-31 05:33:59 +0000
committerderaadt <deraadt@openbsd.org>2006-03-31 05:33:59 +0000
commit242653d27754dfe6143d86fcb170f941421352a0 (patch)
tree9730f28b851dc5d07e75ab4853484c26715d368a /lib/libc/regex/regcomp.c
parentNo point in calling pte_spill_r() 90% of the time, when the first thing (diff)
downloadwireguard-openbsd-242653d27754dfe6143d86fcb170f941421352a0.tar.xz
wireguard-openbsd-242653d27754dfe6143d86fcb170f941421352a0.zip
(char)to{upper,lower}()
Diffstat (limited to 'lib/libc/regex/regcomp.c')
-rw-r--r--lib/libc/regex/regcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index ad65f3622b8..402c64056f3 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regcomp.c,v 1.15 2005/08/05 13:03:00 espie Exp $ */
+/* $OpenBSD: regcomp.c,v 1.16 2006/03/31 05:36:36 deraadt Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -856,9 +856,9 @@ othercase(int ch)
ch = (uch)ch;
assert(isalpha(ch));
if (isupper(ch))
- return(tolower(ch));
+ return ((uch)tolower(ch));
else if (islower(ch))
- return(toupper(ch));
+ return ((uch)toupper(ch));
else /* peculiar, but could happen */
return(ch);
}