a couple casts (Evgeny Kotsuba)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 26 May 2003 14:37:54 +0000 (14:37 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 26 May 2003 14:37:54 +0000 (14:37 +0000)
src/mesa/main/imports.h

index 3dc793d..0bf6499 100644 (file)
@@ -429,8 +429,8 @@ static INLINE int iceil(float f)
    fi_type u;
    af = (3 << 22) + 0.5 + (double)f;
    bf = (3 << 22) + 0.5 - (double)f;
-   u.f = af; ai = u.i;
-   u.f = bf; bi = u.i;
+   u.f = (float) af; ai = u.i;
+   u.f = (float) bf; bi = u.i;
    return (ai - bi + 1) >> 1;
 }
 #define ICEIL(x)  iceil(x)