diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-07-22 15:44:32 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-07-22 15:44:32 -0400 |
commit | 98a8a496bab077b22290dd25d7f8453d1e73a1ac (patch) | |
tree | f5bd346e3ad9869a74d2f58402426b464b2a852c /compile.c | |
parent | 244bda7efd507657ada6f18e800d852d1a1569f4 (diff) | |
download | ruby-98a8a496bab077b22290dd25d7f8453d1e73a1ac.tar.gz |
Use rb_ary_tmp_new only for internal arrays
rb_ary_tmp_new sets the klass to 0, so it should only be used for
internal arrays.
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12349,7 +12349,7 @@ ibf_load_object_array(const struct ibf_load *load, const struct ibf_object_heade const long len = (long)ibf_load_small_value(load, &reading_pos); - VALUE ary = header->frozen ? rb_ary_tmp_new(len) : rb_ary_new_capa(len); + VALUE ary = header->internal ? rb_ary_tmp_new(len) : rb_ary_new_capa(len); int i; for (i=0; i<len; i++) { |