From: Brian Paul Date: Mon, 26 May 2003 14:37:54 +0000 (+0000) Subject: a couple casts (Evgeny Kotsuba) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3793214e941607b31faac33e73a23387ed2163e;p=mesa.git a couple casts (Evgeny Kotsuba) --- diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 3dc793d7bab..0bf649972c3 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -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)