< prev index next >
src/java.desktop/share/native/common/awt/utility/rect.c
Print this page
@@ -74,11 +74,11 @@
/* check if the previous scanline is exactly the same, merge if so
(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) {
}
if (i == pLine - pPrevLine) {
// do merge
@@ -92,11 +92,11 @@
/* or else use the generated scanline */
pPrevLine = pLine;
}
- return pThis - pFirst;
+ return (int)(pThis - pFirst);
}
#if defined(__cplusplus)
}
#endif
< prev index next >