From b51b0a847d7e7daaea69f77ab569086ef81c24a2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 7 Mar 2001 05:06:11 +0000 Subject: fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of potential problems --- src/mesa/main/clip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/clip.c') diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c index d2bbd8b9a02..14930e2be34 100644 --- a/src/mesa/main/clip.c +++ b/src/mesa/main/clip.c @@ -1,4 +1,4 @@ -/* $Id: clip.c,v 1.20 2001/03/03 20:33:27 brianp Exp $ */ +/* $Id: clip.c,v 1.21 2001/03/07 05:06:11 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -59,7 +59,7 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq ) ASSERT_OUTSIDE_BEGIN_END(ctx); p = (GLint) plane - (GLint) GL_CLIP_PLANE0; - if (p < 0 || p >= ctx->Const.MaxClipPlanes) { + if (p < 0 || p >= (GLint) ctx->Const.MaxClipPlanes) { _mesa_error( ctx, GL_INVALID_ENUM, "glClipPlane" ); return; } @@ -114,7 +114,7 @@ _mesa_GetClipPlane( GLenum plane, GLdouble *equation ) ASSERT_OUTSIDE_BEGIN_END(ctx); p = (GLint) (plane - GL_CLIP_PLANE0); - if (p < 0 || p >= ctx->Const.MaxClipPlanes) { + if (p < 0 || p >= (GLint) ctx->Const.MaxClipPlanes) { _mesa_error( ctx, GL_INVALID_ENUM, "glGetClipPlane" ); return; } -- cgit v1.2.3