mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 265084 Need to deal with integer overflows in reflow
r=bz sr=bz
This commit is contained in:
parent
e7c4f3371c
commit
56a062f729
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user