< prev index next >
src/java.desktop/unix/native/common/java2d/x11/X11PMBlitLoops.c
Print this page
rev 52901 : 8233250: Better X11 rendering
Reviewed-by: prr, rhalade, mschoene, serb
@@ -261,11 +261,11 @@
JNU_ThrowOutOfMemoryError(env, "Cannot allocate bitmask for mask");
}
return;
}
dstScan = image->bytes_per_line;
- image->data = malloc(dstScan * height);
+ image->data = malloc((size_t) dstScan * height);
if (image->data == NULL) {
XFree(image);
AWT_UNLOCK();
if (!(*env)->ExceptionCheck(env))
{
< prev index next >