Bug 265084 Need to deal with integer overflows in reflow

r=bz sr=bz
This commit is contained in:
timeless%mozdev.org 2004-11-09 04:57:57 +00:00
parent e7c4f3371c
commit 56a062f729

View File

@ -150,7 +150,7 @@ inline float NSCoordToFloat(nscoord aCoord) {
#ifdef NS_COORD_IS_FLOAT
NS_ASSERTION(!NS_IEEEIsNan(aCoord), "NaN encountered in float conversion");
#endif
return aCoord;
return (float)aCoord;
}
#endif /* NSCOORD_H */