Skip to content
Snippets Groups Projects
Commit 6a4b4906 authored by Tomas Stupka's avatar Tomas Stupka
Browse files

null in a foreign double array has to be DOUBLE_NA

parent bb121e09
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ public final class RForeignDoubleWrapper extends RForeignWrapper implements RAbs
private static double checkIsNull(Object value, ClassCastException e) throws RuntimeException {
if (value instanceof TruffleObject) {
if (ForeignAccess.sendIsNull(IS_NULL, (TruffleObject) value)) {
return RRuntime.INT_NA;
return RRuntime.DOUBLE_NA;
}
}
throw RInternalError.shouldNotReachHere(e);
......
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