summaryrefslogtreecommitdiff
path: root/usr.bin/f2c/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/f2c/proc.c')
-rw-r--r--usr.bin/f2c/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/f2c/proc.c b/usr.bin/f2c/proc.c
index e3afb81ef5fdc..2273e24951a48 100644
--- a/usr.bin/f2c/proc.c
+++ b/usr.bin/f2c/proc.c
@@ -920,8 +920,8 @@ dim_check(Namep q)
else if (!ONEOF(nelt->headblock.vtype, MSKINT|MSKREAL))
bad_dimtype(q);
else if (ISINT(nelt->headblock.vtype)
- ? nelt->constblock.Const.ci <= 0
- : nelt->constblock.Const.cd[0] <= 0.)
+ && nelt->constblock.Const.ci <= 0
+ || nelt->constblock.Const.cd[0] <= 0)
dclerr("nonpositive dimension", q);
}