Silence compiler warnings.
authormichal <michal@michal-laptop.(none)>
Fri, 26 Oct 2007 16:20:53 +0000 (17:20 +0100)
committermichal <michal@michal-laptop.(none)>
Sat, 27 Oct 2007 18:01:11 +0000 (19:01 +0100)
src/mesa/pipe/softpipe/sp_prim_setup.c

index 73b18b776bc1e32089d50fdb68cdbf5057a11569..0b1b592bbe328ff9b6930d28fd81ada4843c3756 100644 (file)
@@ -853,7 +853,7 @@ setup_line(struct draw_stage *stage, struct prim_header *prim)
       for (i = 0; i < dx; i++) {
          if (!sp->rasterizer->line_stipple_enable ||
              stipple_test(sp->line_stipple_counter,
-                          sp->rasterizer->line_stipple_pattern,
+                          (ushort) sp->rasterizer->line_stipple_pattern,
                           sp->rasterizer->line_stipple_factor + 1)) {
              plot(setup, x0, y0);
          }
@@ -880,7 +880,7 @@ setup_line(struct draw_stage *stage, struct prim_header *prim)
       for (i = 0; i < dy; i++) {
          if (!sp->rasterizer->line_stipple_enable ||
              stipple_test(sp->line_stipple_counter,
-                          sp->rasterizer->line_stipple_pattern,
+                          (ushort) sp->rasterizer->line_stipple_pattern,
                           sp->rasterizer->line_stipple_factor + 1)) {
             plot(setup, x0, y0);
          }
@@ -1184,7 +1184,7 @@ void sp_vbuf_setup_draw( struct pipe_context *pipe,
    struct setup_stage *setup = setup_stage( softpipe->setup );
    struct prim_header prim;
    unsigned vertex_size = setup->stage.draw->vertex_info.size * sizeof(float);
-   int i, j;
+   unsigned i, j;
 
    prim.det = 0;
    prim.reset_line_stipple = 0;