Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 85027b2

Browse files
author
Reini Urban
committed
mderef_u: hardcode MDEREF_INDEX_MASK
for B const extraction, needed in B::Deparse.
1 parent dff9c9c commit 85027b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

op.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,14 +1044,15 @@ C<sib> is non-null. For a higher-level interface, see C<L</op_sibling_splice>>.
10441044
#define MDEREF_INDEX_padsv 0x20 /* index is lexical var */
10451045
#define MDEREF_INDEX_gvsv 0x30 /* index is GV */
10461046

1047-
#define MDEREF_INDEX_MASK (MDEREF_INDEX_const|MDEREF_INDEX_padsv|MDEREF_INDEX_gvsv)
1047+
/* (MDEREF_INDEX_const|MDEREF_INDEX_padsv|MDEREF_INDEX_gvsv) */
1048+
#define MDEREF_INDEX_MASK 0x30
10481049

10491050
/* bit flags */
10501051

10511052
#define MDEREF_INDEX_uoob 0x40 /* index needs no out-of-bounds check */
10521053
#define MDEREF_FLAG_last 0x80 /* the last [ah]elem; PL_op flags apply */
10531054

1054-
#define MDEREF_MASK 0x10F
1055+
#define MDEREF_MASK 0x10F
10551056
#define MDEREF_SHIFT 8
10561057

10571058
/* Stuff for OP_SIGNATURE/pp_signature. */

0 commit comments

Comments
 (0)