Fix issue with expandarray, add missing jl, enable tests (https://github.com/Shopify/ruby/pull/409)

This commit is contained in:
Maxime Chevalier-Boisvert 2022-08-17 12:23:59 -04:00 committed by Takashi Kokubun
parent c38e911147
commit 1cf9f56c55
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
4 changed files with 14 additions and 1 deletions

View file

@ -1445,7 +1445,7 @@ fn gen_expandarray(
// Only handle the case where the number of values in the array is greater
// than or equal to the number of values requested.
asm.cmp(array_len_opnd, num.into());
asm.jo(counted_exit!(ocb, side_exit, expandarray_rhs_too_small).into());
asm.jl(counted_exit!(ocb, side_exit, expandarray_rhs_too_small).into());
// Load the address of the embedded array into REG1.
// (struct RArray *)(obj)->as.ary