summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-25 00:01:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-25 00:01:52 +0900
commitc4e893ceb5811f3436f1e16cab769a16469b56b0 (patch)
treea9317577abbc1b7e28674e7637f938bc6081d7ef /vm.c
parent1faeb44dfcf777ace28321e80d0ebf942161a0a7 (diff)
Adjust brace nesting
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/vm.c b/vm.c
index c132f9a377..e55003af3d 100644
--- a/vm.c
+++ b/vm.c
@@ -1439,12 +1439,10 @@ invoke_iseq_block_from_c(rb_execution_context_t *ec, const struct rb_captured_bl
stack_check(ec);
-#if VM_ARGC_STACK_MAX < 1
- /* Skip ruby array for potential autosplat case */
- if (UNLIKELY(argc > VM_ARGC_STACK_MAX && (argc != 1 || is_lambda))) {
-#else
- if (UNLIKELY(argc > VM_ARGC_STACK_MAX)) {
-#endif
+ if (UNLIKELY(argc > VM_ARGC_STACK_MAX) &&
+ (VM_ARGC_STACK_MAX >= 1 ||
+ /* Skip ruby array for potential autosplat case */
+ (argc != 1 || is_lambda))) {
use_argv = vm_argv_ruby_array(av, argv, &flags, &argc, kw_splat);
}