提交 1b6e594f 编写于 作者: B bae

7044285: 64 bit VM crashes in Java_sun_java2d_loops_MaskFill_MaskFill

Reviewed-by: jgodinez, prr
上级 ad26d97a
......@@ -30,6 +30,8 @@
extern "C" {
#endif
#include <stddef.h>
#include "java_awt_AlphaComposite.h"
#include "SurfaceData.h"
......@@ -484,7 +486,9 @@ extern struct _CompositeTypes {
#define ArraySize(A) (sizeof(A) / sizeof(A[0]))
#define PtrAddBytes(p, b) ((void *) (((intptr_t) (p)) + (b)))
#define PtrCoord(p, x, xinc, y, yinc) PtrAddBytes(p, (y)*(yinc) + (x)*(xinc))
#define PtrCoord(p, x, xinc, y, yinc) PtrAddBytes(p, \
((ptrdiff_t)(y))*(yinc) + \
((ptrdiff_t)(x))*(xinc))
/*
* The function to call with an array of NativePrimitive structures
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册