[cp-patches] FYI: Small build fixlet

Mark Wielaard mark at klomp.org
Sat Jun 3 05:21:39 UTC 2006


Hi,

This makes things compile under --enable-Werror again.

2006-06-03  Mark Wielaard  <mark at klomp.org>

   * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c: Use C
   comments, not C++.

Committed,

Mark

diff -u -r1.13 gnu_java_awt_peer_gtk_CairoSurface.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c    2 Jun 2006 22:57:31 -0000       1.13
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c    3 Jun 2006 05:15:14 -0000
@@ -166,7 +166,7 @@

   jpixdata = (*env)->GetIntArrayElements (env, jpixels, NULL);
   size = (*env)->GetArrayLength( env, jpixels );
-  if( size > width * height ) size = width * height; // stop overflows.
+  if( size > width * height ) size = width * height; /* stop overflows. */

   memcpy (pixeldata, jpixdata, size * sizeof( jint ));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060603/6c666fd1/attachment.pgp


More information about the Classpath-patches mailing list