Skip to content

Commit 6d9f0b2

Browse files
committed
Move declaration to top of function
1 parent 045fdf5 commit 6d9f0b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jdk/src/share/native/sun/awt/medialib/mlib_ImageScanPoly.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ mlib_status mlib_AffineEdges(mlib_affine_param *param,
7474
mlib_s32 top, bot;
7575
mlib_s32 topIdx, max_xsize = 0;
7676
mlib_s32 i, j, t;
77+
int intSize;
7778

7879
srcData = mlib_ImageGetData(src);
7980
dstData = mlib_ImageGetData(dst);
@@ -101,7 +102,7 @@ mlib_status mlib_AffineEdges(mlib_affine_param *param,
101102
return MLIB_FAILURE;
102103
}
103104

104-
int intSize = sizeof(mlib_s32);
105+
intSize = sizeof(mlib_s32);
105106
if (!SAFE_TO_MULT(dstHeight, intSize) ||
106107
!SAFE_TO_ADD(dstHeight * intSize, 7)) {
107108
return MLIB_FAILURE;

0 commit comments

Comments
 (0)