From 9c8cbe6950096c4ec2fd1963edbc6c993c86947f Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Thu, 29 Nov 2001 16:16:55 +0000 Subject: Fix compilation errors and warnings for NURBS support. (Robert Bergkvist) --- src/glu/sgi/libnurbs/internals/mapdesc.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/glu/sgi/libnurbs/internals/mapdesc.cc') diff --git a/src/glu/sgi/libnurbs/internals/mapdesc.cc b/src/glu/sgi/libnurbs/internals/mapdesc.cc index 893ab743386..14d01582b09 100644 --- a/src/glu/sgi/libnurbs/internals/mapdesc.cc +++ b/src/glu/sgi/libnurbs/internals/mapdesc.cc @@ -35,8 +35,8 @@ /* * mapdesc.c++ * - * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $ - * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/mapdesc.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $ + * $Date: 2001/11/29 16:16:55 $ $Revision: 1.2 $ + * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/mapdesc.cc,v 1.2 2001/11/29 16:16:55 kschultz Exp $ */ #include @@ -372,13 +372,13 @@ Mapdesc::xformAndCullCheck( unsigned int bits = clipbits( cpts ); outbits |= bits; inbits &= bits; - if( ( outbits == mask ) && ( inbits != mask ) ) return CULL_ACCEPT; + if( ( outbits == (unsigned int)mask ) && ( inbits != (unsigned int)mask ) ) return CULL_ACCEPT; } } - if( outbits != mask ) { + if( outbits != (unsigned int)mask ) { return CULL_TRIVIAL_REJECT; - } else if( inbits == mask ) { + } else if( inbits == (unsigned int)mask ) { return CULL_TRIVIAL_ACCEPT; } else { return CULL_ACCEPT; @@ -404,13 +404,13 @@ Mapdesc::cullCheck( REAL *pts, int uorder, int ustride, int vorder, int vstride unsigned int bits = clipbits( q ); outbits |= bits; inbits &= bits; - if( ( outbits == mask ) && ( inbits != mask ) ) return CULL_ACCEPT; + if( ( outbits == (unsigned int)mask ) && ( inbits != (unsigned int)mask ) ) return CULL_ACCEPT; } } - if( outbits != mask ) { + if( outbits != (unsigned int)mask ) { return CULL_TRIVIAL_REJECT; - } else if( inbits == mask ) { + } else if( inbits == (unsigned int)mask ) { return CULL_TRIVIAL_ACCEPT; } else { return CULL_ACCEPT; @@ -434,12 +434,12 @@ Mapdesc::cullCheck( REAL *pts, int order, int stride ) unsigned int bits = clipbits( p ); outbits |= bits; inbits &= bits; - if( ( outbits == mask ) && ( inbits != mask ) ) return CULL_ACCEPT; + if( ( outbits == (unsigned int)mask ) && ( inbits != (unsigned int)mask ) ) return CULL_ACCEPT; } - if( outbits != mask ) { + if( outbits != (unsigned int)mask ) { return CULL_TRIVIAL_REJECT; - } else if( inbits == mask ) { + } else if( inbits == (unsigned int)mask ) { return CULL_TRIVIAL_ACCEPT; } else { return CULL_ACCEPT; -- cgit v1.2.3