jdk/src/solaris/native/sun/awt/awt_UNIXToolkit.c
changeset 6825 795e9fe949d3
parent 5506 202f599c92aa
child 7668 d4a77089c587
--- a/jdk/src/solaris/native/sun/awt/awt_UNIXToolkit.c	Wed Oct 13 17:03:13 2010 +0400
+++ b/jdk/src/solaris/native/sun/awt/awt_UNIXToolkit.c	Thu Oct 14 14:07:50 2010 +0400
@@ -112,7 +112,7 @@
         /* Copy the data array into a Java structure so we can pass it back. */
         jbyteArray data = (*env)->NewByteArray(env, (row_stride * height));
         (*env)->SetByteArrayRegion(env, data, 0, (row_stride * height),
-                                   pixbuf_data);
+                                   (jbyte *)pixbuf_data);
 
         /* Release the pixbuf. */
         (*fp_g_object_unref)(pixbuf);