summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-06-23 07:35:03 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-06-23 07:35:03 +0000
commit4a3fa9e6ff58affcb7dda23f35f728731510e354 (patch)
tree5e2449ab31f7e05a1bcfd19f751a569ea0528819 /op.c
parent0e051d6bdfed909406b94fc24753cffed9e3d988 (diff)
downloadperl-4a3fa9e6ff58affcb7dda23f35f728731510e354.tar.gz
Fix overeager integer optimization
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index b61d387b54..d56ed9ad8d 100644
--- a/op.c
+++ b/op.c
@@ -1413,7 +1413,7 @@ register OP *o;
for (curop = ((UNOP*)o)->op_first; curop; curop = curop->op_sibling) {
if (curop->op_type == OP_CONST) {
if (SvIOK(((SVOP*)curop)->op_sv)) {
- if (SvIVX(((SVOP*)curop)->op_sv) < 0 && vars++)
+ if (SvIVX(((SVOP*)curop)->op_sv) <= 0 && vars++)
return o; /* negatives truncate wrong way, alas */
continue;
}