Fix support for 64-bit integers.
Change-Id: I4e2146a5fda41f280ee3f6f685a34f3cff28f05e
diff --git a/graphics/java/android/renderscript/Script.java b/graphics/java/android/renderscript/Script.java
index 8772c4c..53a33e4 100644
--- a/graphics/java/android/renderscript/Script.java
+++ b/graphics/java/android/renderscript/Script.java
@@ -80,6 +80,10 @@
mRS.nScriptSetVarI(mID, index, v);
}
+ public void setVar(int index, long v) {
+ mRS.nScriptSetVarJ(mID, index, v);
+ }
+
public void setVar(int index, boolean v) {
mRS.nScriptSetVarI(mID, index, v ? 1 : 0);
}