summaryrefslogtreecommitdiff
path: root/peep.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-08-11 15:50:39 +0100
committerPaul Evans <leonerd@leonerd.org.uk>2022-08-15 14:50:25 +0100
commit2a49eaa6d41eea5e47b3c9fa4b34e19e16e2726d (patch)
treeb2e40f1560b03f140dd3b796a6c1b4a1c484ce44 /peep.c
parent78178fbe70ffe948ca5d725d4e3faeed9ae1fb19 (diff)
downloadperl-2a49eaa6d41eea5e47b3c9fa4b34e19e16e2726d.tar.gz
Use the cBINOPx-family of macros instead of manual (BINOP*) casting
Diffstat (limited to 'peep.c')
-rw-r--r--peep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/peep.c b/peep.c
index 58031643f1..e9041a36cd 100644
--- a/peep.c
+++ b/peep.c
@@ -1293,10 +1293,10 @@ S_finalize_op(pTHX_ OP* o)
SVOP *key_op;
OP *kid;
- if ((key_op = cSVOPx(((BINOP*)o)->op_last))->op_type != OP_CONST)
+ if ((key_op = cSVOPx(cBINOPo->op_last))->op_type != OP_CONST)
break;
- rop = (UNOP*)((BINOP*)o)->op_first;
+ rop = (UNOP*)cBINOPo->op_first;
goto check_keys;
@@ -2072,7 +2072,7 @@ S_maybe_multideref(pTHX_ OP *start, OP *orig_o, UV orig_action, U8 hints)
|| helem_op->op_type == OP_NULL
|| pass == 0);
if (helem_op->op_type == OP_HELEM) {
- rop = (UNOP*)(((BINOP*)helem_op)->op_first);
+ rop = (UNOP*)(cBINOPx(helem_op)->op_first);
if ( helem_op->op_private & OPpLVAL_INTRO
|| rop->op_type != OP_RV2HV
)