From 2138fc787c1e497be7f373aa68b3f751c955008f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 29 Mar 2010 04:24:20 +0200 Subject: New Int64Buffer type, which is being used for gluegen 'long *' --- src/java/com/sun/gluegen/JavaMethodBindingEmitter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/java/com/sun/gluegen/JavaMethodBindingEmitter.java') diff --git a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java index da5484b..b992fcc 100644 --- a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java +++ b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java @@ -589,7 +589,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter } if (type.isNIOBuffer()) { - if(type.isNIOPointerBuffer()) { + if(type.isNIOInt64Buffer() || type.isNIOPointerBuffer()) { if (directNIOOnly) { writer.print( getArgumentName(i)+ " != null ? " + getArgumentName(i) + ".getBuffer() : null"); } else { -- cgit v1.2.3