--- old/src/java.desktop/share/native/common/awt/utility/rect.c 2018-09-30 07:52:51.995000000 +0530 +++ new/src/java.desktop/share/native/common/awt/utility/rect.c 2018-09-30 07:52:51.743000000 +0530 @@ -76,7 +76,7 @@ (this is the only optimization we can use for YXBanded rectangles, and win32 supports YXBanded only */ - length = pThis - pLine; + length = (int)(pThis - pLine); if (pPrevLine && pLine - pPrevLine == length) { for (i = 0; i < length && RECT_EQ_X(pPrevLine[i], pLine[i]); ++i) { } @@ -94,7 +94,7 @@ pPrevLine = pLine; } - return pThis - pFirst; + return (int)(pThis - pFirst); } #if defined(__cplusplus)