summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-05-15 13:38:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-05-15 13:38:24 +0000
commit12f8fb60844be2e074b878b8d6f55ef724b65ac3 (patch)
treef2de1095c9a859688d54c14c31c33f3391fc77bf /src/mesa
parent06a03bfb2ada23cfbc0f86055842d3d941918299 (diff)
added a couple casts
Diffstat (limited to 'src/mesa')
-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 e16e95cb0b..3dc793d7ba 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)