From c4e893ceb5811f3436f1e16cab769a16469b56b0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 25 Jul 2023 00:01:52 +0900 Subject: [PATCH] Adjust brace nesting --- vm.c | 10 ++++------ 1 file 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); }