ffi/java: pointers are stored as `long` so they grow with the architecture
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 23 Jul 2015 17:54:20 +0000 (13:54 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 24 Jul 2015 13:44:24 +0000 (09:44 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/ffi/java.nit

index da641a5..dd32712 100644 (file)
@@ -457,7 +457,7 @@ redef class MType
        # JNI type name (in C)
        #
        # So this is a C type, usually defined in `jni.h`
-       private fun jni_type: String do return "jint"
+       private fun jni_type: String do return "long"
 
        # JNI short type name (for signatures)
        #