summaryrefslogtreecommitdiff
path: root/bin/ksh/c_test.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-02-02 07:53:02 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-02-02 07:53:02 +0000
commit54ee15db00e783ca1052eedeb6b38b4484b6011f (patch)
treebf4d8074308cb316ade912a58910777671d1b708 /bin/ksh/c_test.c
parent8611e25a7ef3067db40e9ec505220aa05c19a973 (diff)
Introduce POSIX hex and octal (0x... and 0...) constants in arithmetic
expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
Diffstat (limited to 'bin/ksh/c_test.c')
-rw-r--r--bin/ksh/c_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/c_test.c b/bin/ksh/c_test.c
index 227dfa6d250..2023d51be60 100644
--- a/bin/ksh/c_test.c
+++ b/bin/ksh/c_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: c_test.c,v 1.14 2004/12/22 17:14:34 millert Exp $ */
+/* $OpenBSD: c_test.c,v 1.15 2005/02/02 07:53:01 otto Exp $ */
/*
* test(1); version 7-like -- author Erik Baalbergen
@@ -308,8 +308,8 @@ test_eval(Test_env *te, Test_op op, const char *opnd1, const char *opnd2,
{
long v1, v2;
- if (!evaluate(opnd1, &v1, KSH_RETURN_ERROR)
- || !evaluate(opnd2, &v2, KSH_RETURN_ERROR))
+ if (!evaluate(opnd1, &v1, KSH_RETURN_ERROR, false)
+ || !evaluate(opnd2, &v2, KSH_RETURN_ERROR, false))
{
/* error already printed.. */
te->flags |= TEF_ERROR;