From 6a4b4906add37b9cb326debd4546eb897ee3f525 Mon Sep 17 00:00:00 2001 From: Tomas Stupka <tomas.stupka@oracle.com> Date: Tue, 10 Jul 2018 11:39:31 +0200 Subject: [PATCH] null in a foreign double array has to be DOUBLE_NA --- .../oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java index 53bb922312..6d54a0f742 100644 --- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java +++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java @@ -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); -- GitLab