Fix typo in array.c
We should be using the size of RArray and not RString for arrays.
This commit is contained in:
parent
98675ac09c
commit
4f73de67ed
2
array.c
2
array.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user