diff options
author | Jimmy Miller <[email protected]> | 2023-03-13 11:12:23 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-03-13 11:12:23 -0400 |
commit | 45127c84d992dc0224c59be341e6c652de7edd21 (patch) | |
tree | 1010831e629ac35c6505d1a070b056f7f10911e8 /yjit.c | |
parent | 1095baed34dca15b9d8c6c54ea2f89bbaf67fb52 (diff) |
YJIT: Handle rest+splat where non-splat < required (#7499)
Notes
Notes:
Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -845,6 +845,13 @@ VALUE rb_yjit_rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary); VALUE +rb_yjit_rb_ary_subseq_length(VALUE ary, long beg) +{ + long len = RARRAY_LEN(ary); + return rb_ary_subseq(ary, beg, len); +} + +VALUE rb_yarv_fix_mod_fix(VALUE recv, VALUE obj) { return rb_fix_mod_fix(recv, obj); |