gallium: silence warnings
authorBrian <brian.paul@tungstengraphics.com>
Tue, 22 Jan 2008 04:19:24 +0000 (21:19 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 22 Jan 2008 04:19:24 +0000 (21:19 -0700)
src/mesa/state_tracker/st_cb_feedback.c
src/mesa/state_tracker/st_cb_rasterpos.c

index ea775b9452d7c8f32688f86b7136e54333bca6df..43543df1a881d418c9ed3c227339f2d165bafc17 100644 (file)
@@ -103,13 +103,13 @@ feedback_vertex(GLcontext *ctx, const struct draw_context *draw,
     */
 
    slot = st->vertex_result_to_slot[VERT_RESULT_COL0];
-   if (slot != ~0)
+   if (slot != ~0U)
       color = v->data[slot];
    else
       color = ctx->Current.Attrib[VERT_ATTRIB_COLOR0];
 
    slot = st->vertex_result_to_slot[VERT_RESULT_TEX0];
-   if (slot != ~0)
+   if (slot != ~0U)
       texcoord = v->data[slot];
    else
       texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0];
index 852cff64901e7d5330c0e96051ecf9868653952c..f1c2d2d7c3779d5a62d99eaeb89d98181b1c6cc6 100644 (file)
@@ -117,7 +117,7 @@ update_attrib(GLcontext *ctx, const GLuint *outputMapping,
 {
    const GLfloat *src;
    const GLuint k = outputMapping[result];
-   if (k != ~0)
+   if (k != ~0U)
       src = vert->data[k];
    else
       src = ctx->Current.Attrib[defaultAttrib];