From 98be996420b2ebfac029a00d114efce509421622 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 26 Nov 2011 16:58:56 -0800 Subject: [PATCH] Make inlined &CORE::__SUB__ the right-sized op In commit 1a35f9ffb I forgot to make an inlined OP_RUNCV op a PVOP in ck_entersub_args_core (which inlines a &CORE::sub). This caused crashes on Linux, but not on OS X, for some reason. --- op.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/op.c b/op.c index f3088ed..1ed3dae 100644 --- a/op.c +++ b/op.c @@ -9440,7 +9440,9 @@ Perl_ck_entersub_args_core(pTHX_ OP *entersubop, GV *namegv, SV *protosv) (void)too_many_arguments(aop, GvNAME(namegv)); op_free(aop); } - return newOP(opnum,0); + return opnum == OP_RUNCV + ? newPVOP(OP_RUNCV,0,NULL) + : newOP(opnum,0); default: return convert(opnum,0,aop); } -- 1.8.3.1