summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-10-08 13:15:44 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-10-28 11:47:09 -0700
commit339a891c7d9c56f27f10ed9a9e60f511f75da934 (patch)
treec94d478bb2e71c80851e16b7ad4fa57d75ffae5f /compile.c
parenta51583b678945ec2ba7ea355dab2c097c47f4b08 (diff)
Pin keys of this st_table
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 72b60c1144..a478324261 100644
--- a/compile.c
+++ b/compile.c
@@ -9039,7 +9039,7 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc, VALUE locals, VALUE params,
unsigned int arg_size, local_size, stack_max;
ID *tbl;
struct st_table *labels_table = st_init_numtable();
- VALUE labels_wrapper = Data_Wrap_Struct(0, 0, st_free_table, labels_table);
+ VALUE labels_wrapper = Data_Wrap_Struct(0, rb_mark_set, st_free_table, labels_table);
VALUE arg_opt_labels = rb_hash_aref(params, SYM(opt));
VALUE keywords = rb_hash_aref(params, SYM(keyword));
VALUE sym_arg_rest = ID2SYM(rb_intern("#arg_rest"));