From 64e93875cecc7af2d630399eb30fdc2e2cbd27e6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 7 Jul 2011 02:07:19 -0500 Subject: make sure entersub op is built properly (prototypes applied, etc) --- smartmatch.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartmatch.xs b/smartmatch.xs index 28cf0e0..23a4f17 100644 --- a/smartmatch.xs +++ b/smartmatch.xs @@ -17,7 +17,7 @@ smartmatch_cb(pTHX_ OP *o, void *user_data) o->op_flags &= ~OPf_KIDS; op_free(o); - cb_op = newSVOP(OP_CONST, 0, newSVsv(user_data)); + cb_op = newCVREF(0, newSVOP(OP_CONST, 0, newSVsv(user_data))); list = newLISTOP(OP_LIST, 0, left, right); new = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, list, cb_op)); -- cgit v1.2.3