summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-05-26 14:37:54 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-05-26 14:37:54 +0000
commita3793214e941607b31faac33e73a23387ed2163e (patch)
tree3b9860a1c3ae356aea8e31c4d80562d92199d483 /src
parent27358a24a0113a62492923abe35e8660ed7335ef (diff)
a couple casts (Evgeny Kotsuba)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/imports.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 3dc793d7ba..0bf649972c 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)