summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_drawpix.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-02-25 19:25:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-02-25 19:25:52 +0000
commit4039cb8ca82d59451a6de8902fe35e693cdca3ba (patch)
tree0ea4e7518923243d8d49064719c1206f16c63640 /src/mesa/swrast/s_drawpix.c
parentb10c434a8f1b760e5a5516729761944d3e84d894 (diff)
casts to silence g++ warnings
Diffstat (limited to 'src/mesa/swrast/s_drawpix.c')
-rw-r--r--src/mesa/swrast/s_drawpix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c
index a69f3cc3c9..ddf864793e 100644
--- a/src/mesa/swrast/s_drawpix.c
+++ b/src/mesa/swrast/s_drawpix.c
@@ -1,4 +1,4 @@
-/* $Id: s_drawpix.c,v 1.44 2003/01/16 18:57:44 brianp Exp $ */
+/* $Id: s_drawpix.c,v 1.45 2003/02/25 19:26:00 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -718,7 +718,7 @@ draw_depth_pixels( GLcontext *ctx, GLint x, GLint y,
/* clamp depth values to [0,1] and convert from floats to ints */
{
const GLfloat zs = ctx->DepthMaxF;
- GLint i;
+ GLuint i;
for (i = 0; i < span.end; i++) {
span.array->z[i] = (GLdepth) (floatSpan[i] * zs + 0.5F);
}