Skip to content
Snippets Groups Projects
Commit 8ed7ea74 authored by stepan's avatar stepan
Browse files

Fix in TruffleNFI_Call: convert address to truffle object

parent 044b178a
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ public class TruffleNFI_Call implements CallRFFI {
boolean isNullSetting = prepareCall(nativeCallInfo.name, args, ffiWrapNodes);
Object[] realArgs = new Object[cachedArgsLength + 1];
System.arraycopy(args, 0, realArgs, 1, cachedArgsLength);
realArgs[0] = nativeCallInfo.address;
realArgs[0] = nativeCallInfo.address.asTruffleObject();
try {
result = ForeignAccess.sendExecute(executeNode, getFunction(cachedArgsLength), realArgs);
return unwrap.execute(result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment