summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-21 21:19:24 -0700
committerBrian <[email protected]>2008-01-21 21:19:24 -0700
commit7049ff53f640aeccc9523a103468183ffda996fd (patch)
tree4a1b3b3579fca1d5180dfbff77428b35274edea3 /src/mesa
parentcfeda4165b2845d2253d3082aa771a2346bac6a0 (diff)
gallium: silence warnings
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_feedback.c4
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_feedback.c b/src/mesa/state_tracker/st_cb_feedback.c
index ea775b9452d..43543df1a88 100644
--- a/src/mesa/state_tracker/st_cb_feedback.c
+++ b/src/mesa/state_tracker/st_cb_feedback.c
@@ -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];
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 852cff64901..f1c2d2d7c37 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -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];