summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-29 22:25:28 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-29 22:25:28 -0700
commit077da62ff955a1517f28fde7b6613d123050dbcb (patch)
tree8726d4d194bb8980ac3d58fefc928b4776e9cb42 /op.c
parent1b5aaca661f906a9b324afb51b7af8727497f276 (diff)
downloadperl-077da62ff955a1517f28fde7b6613d123050dbcb.tar.gz
op.c: S_op_integerize: -foo no longer needs an exception
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/op.c b/op.c
index e708a9920b..ae0d6e8c5c 100644
--- a/op.c
+++ b/op.c
@@ -3184,11 +3184,8 @@ S_op_integerize(pTHX_ OP *o)
PERL_ARGS_ASSERT_OP_INTEGERIZE;
- /* integerize op, unless it happens to be C<-foo>.
- * XXX should pp_i_negate() do magic string negation instead? */
- if ((PL_opargs[type] & OA_OTHERINT) && (PL_hints & HINT_INTEGER)
- && !(type == OP_NEGATE && cUNOPo->op_first->op_type == OP_CONST
- && (cUNOPo->op_first->op_private & OPpCONST_BARE)))
+ /* integerize op. */
+ if ((PL_opargs[type] & OA_OTHERINT) && (PL_hints & HINT_INTEGER))
{
dVAR;
o->op_ppaddr = PL_ppaddr[type = ++(o->op_type)];