X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=Magic.xs;h=03671cf7ad931059480cca5d1529340e20154e23;hp=40b438f831bef3f0d35a5bae6f70960a873f655d;hb=5663aeb8fcd42b77a62b817fd2070dada1bd56ce;hpb=7afdaf8f49acc22b13ccfcee9bc03045d0a88036 diff --git a/Magic.xs b/Magic.xs index 40b438f..03671cf 100644 --- a/Magic.xs +++ b/Magic.xs @@ -426,8 +426,13 @@ static opclass vmg_opclass(const OP *o) { return OPc_NULL; #endif - if (o->op_type == 0) + if (o->op_type == 0) { +#if VMG_HAS_PERL(5, 21, 7) + if (o->op_targ == OP_NEXTSTATE || o->op_targ == OP_DBSTATE) + return OPc_COP; +#endif return (o->op_flags & OPf_KIDS) ? OPc_UNOP : OPc_BASEOP; + } if (o->op_type == OP_SASSIGN) return ((o->op_private & OPpASSIGN_BACKWARDS) ? OPc_UNOP : OPc_BINOP);