summaryrefslogtreecommitdiff
path: root/src/mesa/main/rastpos.c
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2003-08-30 14:45:04 +0000
committerKarl Schultz <kschultz@freedesktop.org>2003-08-30 14:45:04 +0000
commitdc24230de7f913969b52dee3579bb8fa3d50a8c0 (patch)
tree721e30477f9c529d562fa4bd2b71e465b4ed7fd0 /src/mesa/main/rastpos.c
parentd12a871b21adee531661f4cf6561d2ffda685359 (diff)
Silence compiler warnings about implicit casts or conversions by supplying explicit casts and/or tweaking constant and variable definitions.
Diffstat (limited to 'src/mesa/main/rastpos.c')
-rw-r--r--src/mesa/main/rastpos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index 218e4f7ed2..7e39ddc416 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -380,7 +380,7 @@ raster_pos4f(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
}
/* ndc = clip / W */
- d = (clip[3] == 0.0) ? 1.0 : 1.0F / clip[3];
+ d = (clip[3] == 0.0F) ? 1.0F : 1.0F / clip[3];
ndc[0] = clip[0] * d;
ndc[1] = clip[1] * d;
ndc[2] = clip[2] * d;