Fix bustage.

This commit is contained in:
roc+%cs.cmu.edu 2004-11-03 03:02:02 +00:00
parent 82d2fed87b
commit 605c744e1f

View File

@ -60,13 +60,6 @@
// change the definition of nscoord in gfx/idl/gfxtypes.idl.
//#define NS_COORD_IS_FLOAT
inline void VERIFY_COORD(nscoord aCoord) {
#ifdef NS_COORD_IS_FLOAT
NS_ASSERTION(floorf(aCoord) == aCoord,
"Coords cannot have fractions");
#endif
}
inline float NS_IEEEPositiveInfinity() {
float f;
*(PRUint32*)&f = 0x7F800000;
@ -88,6 +81,13 @@ typedef PRInt32 nscoord;
#define nscoord_MIN (-nscoord_MAX)
inline void VERIFY_COORD(nscoord aCoord) {
#ifdef NS_COORD_IS_FLOAT
NS_ASSERTION(floorf(aCoord) == aCoord,
"Coords cannot have fractions");
#endif
}
inline nscoord NSCoordMultiply(nscoord aCoord, float aVal) {
VERIFY_COORD(aCoord);
#ifdef NS_COORD_IS_FLOAT