summaryrefslogtreecommitdiff
path: root/peep.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-08-11 15:58:27 +0100
committerPaul Evans <leonerd@leonerd.org.uk>2022-08-15 14:50:25 +0100
commit867a530c83f84d4542a286d018a220af39864c1a (patch)
tree40ffeef6d2b1194852fcb9bdb8f011b87f470167 /peep.c
parent008ea6fc45fe9d4da4a15062e391deba35c72740 (diff)
downloadperl-867a530c83f84d4542a286d018a220af39864c1a.tar.gz
Use the cUNOPx-family of macros instead of manual (UNOP*) 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 61bc7455fe..7881a86ce9 100644
--- a/peep.c
+++ b/peep.c
@@ -1296,7 +1296,7 @@ S_finalize_op(pTHX_ OP* o)
if ((key_op = cSVOPx(cBINOPo->op_last))->op_type != OP_CONST)
break;
- rop = (UNOP*)cBINOPo->op_first;
+ rop = cUNOPx(cBINOPo->op_first);
goto check_keys;
@@ -1317,7 +1317,7 @@ S_finalize_op(pTHX_ OP* o)
? kid
: OpSIBLING(kLISTOP->op_first));
- rop = (UNOP*)(cLISTOPo->op_last);
+ rop = cUNOPx(cLISTOPo->op_last);
check_keys:
if (o->op_private & OPpLVAL_INTRO || rop->op_type != OP_RV2HV)
@@ -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*)(cBINOPx(helem_op)->op_first);
+ rop = cUNOPx(cBINOPx(helem_op)->op_first);
if ( helem_op->op_private & OPpLVAL_INTRO
|| rop->op_type != OP_RV2HV
)