Skip to content

Commit

Permalink
Fixed bug in assertion error.
Browse files Browse the repository at this point in the history
  • Loading branch information
flohuemer committed Apr 16, 2024
1 parent 334b2b8 commit b134d48
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
Expand Down Expand Up @@ -248,7 +248,7 @@ private void moveResultValuesToMultiValueStack(VirtualFrame frame, int resultCou
private void moveArgumentsToLocals(VirtualFrame frame) {
Object[] args = frame.getArguments();
int paramCount = functionNode.paramCount();
assert WasmArguments.getArgumentCount(args) == paramCount : "Expected number of params " + paramCount + ", actual " + args.length;
assert WasmArguments.getArgumentCount(args) == paramCount : "Expected number of params " + paramCount + ", actual " + WasmArguments.getArgumentCount(args);
for (int i = 0; i != paramCount; ++i) {
final Object arg = WasmArguments.getArgument(args, i);
byte type = functionNode.localType(i);
Expand Down

0 comments on commit b134d48

Please sign in to comment.