From: Brian Paul Date: Thu, 15 May 2003 13:38:24 +0000 (+0000) Subject: added a couple casts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12f8fb60844be2e074b878b8d6f55ef724b65ac3;p=mesa.git added a couple casts --- diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index e16e95cb0b8..3dc793d7bab 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -383,8 +383,8 @@ static INLINE int ifloor(float f) 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; } #define IFLOOR(x) ifloor(x)