Skip to content
Snippets Groups Projects
Commit ead6e5b4 authored by Mick Jordan's avatar Mick Jordan Committed by Lukas Stadler
Browse files

TruffleNFI_Zip: remove unnecessary asTruffleObject

parent f56f71f4
Branches
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ public class TruffleNFI_Zip implements ZipRFFI { ...@@ -40,7 +40,7 @@ public class TruffleNFI_Zip implements ZipRFFI {
try { try {
int result = (int) ForeignAccess.sendExecute(message, NFIFunction.compress.getFunction(), int result = (int) ForeignAccess.sendExecute(message, NFIFunction.compress.getFunction(),
JavaInterop.asTruffleObject(dest), JavaInterop.asTruffleObject(destlen), JavaInterop.asTruffleObject(dest), JavaInterop.asTruffleObject(destlen),
JavaInterop.asTruffleObject(source), JavaInterop.asTruffleObject(source.length)); JavaInterop.asTruffleObject(source), source.length);
return result; return result;
} catch (InteropException e) { } catch (InteropException e) {
throw RInternalError.shouldNotReachHere(e); throw RInternalError.shouldNotReachHere(e);
...@@ -57,7 +57,7 @@ public class TruffleNFI_Zip implements ZipRFFI { ...@@ -57,7 +57,7 @@ public class TruffleNFI_Zip implements ZipRFFI {
try { try {
int result = (int) ForeignAccess.sendExecute(message, NFIFunction.uncompress.getFunction(), int result = (int) ForeignAccess.sendExecute(message, NFIFunction.uncompress.getFunction(),
JavaInterop.asTruffleObject(dest), JavaInterop.asTruffleObject(destlen), JavaInterop.asTruffleObject(dest), JavaInterop.asTruffleObject(destlen),
JavaInterop.asTruffleObject(source), JavaInterop.asTruffleObject(source.length)); JavaInterop.asTruffleObject(source), source.length);
return result; return result;
} catch (InteropException e) { } catch (InteropException e) {
throw RInternalError.shouldNotReachHere(e); throw RInternalError.shouldNotReachHere(e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment