diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2023-04-17 17:58:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 17:58:04 -0400 |
commit | 293913905e87c799c00c113900814987dce994e7 (patch) | |
tree | 4506f4fd956df75d388958cf4ecc7be463e8fcab /yjit/src | |
parent | 5aa3be65f4e003f3638258cdd6e10aabd9d05d2d (diff) | |
download | ruby-293913905e87c799c00c113900814987dce994e7.tar.gz |
YJIT: Fixes failure reported by rails for opt+splat+rest (#7727)
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 7fc110e1dc..3f12d3c273 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -5855,7 +5855,7 @@ fn gen_send_iseq( // If we have more arguments than required, we need to prepend // the items from the stack onto the array. - let diff = (non_rest_arg_count - required_num + opts_filled_with_splat.unwrap_or(0)) as u32; + let diff = (non_rest_arg_count - (required_num + opts_filled_with_splat.unwrap_or(0))) as u32; // diff is >0 so no need to worry about null pointer asm.comment("load pointer to array elements"); |