Fix typo in array.c

We should be using the size of RArray and not RString for arrays.
This commit is contained in:
Peter Zhu 2022-12-22 13:16:55 -05:00
parent 98675ac09c
commit 4f73de67ed

View File

@ -242,7 +242,7 @@ rb_ary_size_as_embedded(VALUE ary)
real_size = ary_embed_size(ARY_HEAP_CAPA(ary)); real_size = ary_embed_size(ARY_HEAP_CAPA(ary));
} }
else { else {
real_size = sizeof(struct RString); real_size = sizeof(struct RArray);
} }
return real_size; return real_size;
} }