op.c: S_op_integerize: -foo no longer needs an exception
authorFather Chrysostomos <sprout@cpan.org>
Sat, 30 Jun 2012 05:25:28 +0000 (22:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 30 Jun 2012 05:25:28 +0000 (22:25 -0700)
op.c

diff --git a/op.c b/op.c
index e708a99..ae0d6e8 100644 (file)
--- 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)];