Skip to content

Commit 906db1c

Browse files
committed
Move declaration to top of function
1 parent 045fdf5 commit 906db1c

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
@@ -84,6 +84,7 @@ mlib_status mlib_AffineEdges(mlib_affine_param *param,
8484
srcYStride = mlib_ImageGetStride(src);
8585
dstYStride = mlib_ImageGetStride(dst);
8686
paddings = mlib_ImageGetPaddings(src);
87+
int intSize;
8788

8889
/* All the transformation matrix parameters should be finite. if not, return failure */
8990
if (!(IS_FINITE(a) && IS_FINITE(b) && IS_FINITE(c) && IS_FINITE(d) &&
@@ -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)