@@ -107,8 +107,8 @@ inline MCGRectangle MCRectangle32ToMCGRectangle(const MCRectangle32 &p_rect)
107107inline MCRectangle32 MCRectangle32FromMCGIntegerRectangle (const MCGIntegerRectangle &p_rect)
108108{
109109 return MCRectangle32Make (p_rect.origin .x , p_rect.origin .y ,
110- int32_t (MCMin (p_rect.size .width , INT32_MAX)),
111- int32_t (MCMin (p_rect.size .height , INT32_MAX)));
110+ int32_t (MCMin (p_rect.size .width , uint32_t ( INT32_MAX) )),
111+ int32_t (MCMin (p_rect.size .height , uint32_t ( INT32_MAX) )));
112112}
113113
114114inline MCGIntegerRectangle MCRectangle32ToMCGIntegerRectangle (const MCRectangle32 &p_rect)
@@ -129,8 +129,8 @@ inline MCRectangle MCRectangleFromMCGIntegerRectangle(const MCGIntegerRectangle
129129{
130130 return MCRectangleMake (int16_t (MCClamp (p_rect.origin .x , INT16_MIN, INT16_MAX)),
131131 int16_t (MCClamp (p_rect.origin .y , INT16_MIN, INT16_MAX)),
132- uint16_t (MCClamp (p_rect.size .width , 0 , UINT16_MAX)),
133- uint16_t (MCClamp (p_rect.size .height , 0 , UINT16_MAX)));
132+ uint16_t (MCClamp (p_rect.size .width , 0U , uint32_t ( UINT16_MAX) )),
133+ uint16_t (MCClamp (p_rect.size .height , 0U , uint32_t ( UINT16_MAX) )));
134134}
135135
136136// //////////////////////////////////////////////////////////////////////////////
0 commit comments