summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2008-11-24 16:23:05 +0000
committerMarc Espie <espie@cvs.openbsd.org>2008-11-24 16:23:05 +0000
commit4b5fff7b0b56281a17df8e147bd4c4ff2cfced47 (patch)
treea1a8772b8a75eaefcae1f7f412b57c0f82a29b65 /usr.bin/make
parent8cd36191e05dbed078b40dda30a251bdff0de82a (diff)
fix a very old bug. Fix discovered in NetBSD by miod@
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/cond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c
index 1f15d8eeee2..eab4e96262a 100644
--- a/usr.bin/make/cond.c
+++ b/usr.bin/make/cond.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: cond.c,v 1.39 2007/09/18 09:44:35 espie Exp $ */
+/* $OpenBSD: cond.c,v 1.40 2008/11/24 16:23:04 espie Exp $ */
/* $NetBSD: cond.c,v 1.7 1996/11/06 17:59:02 christos Exp $ */
/*
@@ -347,7 +347,7 @@ CondCvtArg(const char *str, double *value)
if (isdigit(*str))
x = *str - '0';
else if (isxdigit(*str))
- x = 10 + *str - isupper(*str) ? 'A' : 'a';
+ x = 10 + *str - (isupper(*str) ? 'A' : 'a');
else
return false;
i = (i << 4) + x;