summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-07-22 15:44:32 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-07-22 15:44:32 -0400
commit98a8a496bab077b22290dd25d7f8453d1e73a1ac (patch)
treef5bd346e3ad9869a74d2f58402426b464b2a852c /compile.c
parent244bda7efd507657ada6f18e800d852d1a1569f4 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 193a9a1c6d..be974d571a 100644
--- a/compile.c
+++ b/compile.c
@@ -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++) {