diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2022-08-11 15:58:27 +0100 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-08-15 14:50:25 +0100 |
commit | 867a530c83f84d4542a286d018a220af39864c1a (patch) | |
tree | 40ffeef6d2b1194852fcb9bdb8f011b87f470167 /peep.c | |
parent | 008ea6fc45fe9d4da4a15062e391deba35c72740 (diff) | |
download | perl-867a530c83f84d4542a286d018a220af39864c1a.tar.gz |
Use the cUNOPx-family of macros instead of manual (UNOP*) casting
Diffstat (limited to 'peep.c')
-rw-r--r-- | peep.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 ) |