File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -497,8 +497,7 @@ struct MCScriptBytecodeOp_InvokeIndirect
497497 InternalInvoke (ctxt,
498498 (MCHandlerRef)t_handler,
499499 t_result_reg,
500- t_argument_regs,
501- t_argument_count);
500+ MCMakeSpan (t_argument_regs, t_argument_count));
502501 }
503502 else
504503 {
@@ -514,8 +513,7 @@ struct MCScriptBytecodeOp_InvokeIndirect
514513 static void InternalInvoke (MCScriptExecuteContext& ctxt,
515514 MCHandlerRef p_handler,
516515 uindex_t p_result_reg,
517- const uindex_t *p_argument_regs,
518- uindex_t p_argument_count)
516+ MCSpan<const uindex_t > p_argument_regs)
519517 {
520518 // An 'internal' handler-ref is nothing more than an instance/definition
521519 // pair, so we can execute directly inside this execution context. This
@@ -535,7 +533,7 @@ struct MCScriptBytecodeOp_InvokeIndirect
535533 ctxt.PushFrame (t_handler_instance,
536534 static_cast <MCScriptHandlerDefinition *>(t_handler_def),
537535 p_result_reg,
538- MCMakeSpan ( p_argument_regs, p_argument_count) );
536+ p_argument_regs);
539537 }
540538 break ;
541539
@@ -544,7 +542,7 @@ struct MCScriptBytecodeOp_InvokeIndirect
544542 ctxt.InvokeForeign (t_handler_instance,
545543 static_cast <MCScriptForeignHandlerDefinition *>(t_handler_def),
546544 p_result_reg,
547- MCMakeSpan ( p_argument_regs, p_argument_count) );
545+ p_argument_regs);
548546 }
549547 break ;
550548
You can’t perform that action at this time.
0 commit comments