diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | native/jni/java-nio/gnu_java_nio_VMChannel.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-05-20 Andrew John Hughes <gnu_andrew@member.fsf.org> + + * native/jni/java-nio/gnu_java_nio_VMChannel.c: + (JCL_print_buffer): Fix to work with -Werror on 64-bit + platforms. + 2006-05-20 Sven de Marothy <sven@physto.se> * java/awt/Font.java (getNumGlyphs): Call correct peer method. diff --git a/native/jni/java-nio/gnu_java_nio_VMChannel.c b/native/jni/java-nio/gnu_java_nio_VMChannel.c index cf82eb0af..5571bed27 100644 --- a/native/jni/java-nio/gnu_java_nio_VMChannel.c +++ b/native/jni/java-nio/gnu_java_nio_VMChannel.c @@ -110,7 +110,7 @@ get_method_id(JNIEnv *env, jclass clazz, const char *name, void JCL_print_buffer(JNIEnv *env __attribute__((__unused__)), struct JCL_buffer *buf) { - fprintf(stdout, "Buffer - type: %d, ptr: %d\n", buf->type, (int)buf->ptr); + fprintf(stdout, "Buffer - type: %d, ptr: %p\n", buf->type, buf->ptr); fflush(stdout); } |