diff options
Diffstat (limited to 'smartmatch.xs')
-rw-r--r-- | smartmatch.xs | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |