From 187c164bb6fa794f59181df89e72ff8c543238c6 Mon Sep 17 00:00:00 2001 From: michal Date: Fri, 26 Oct 2007 17:20:53 +0100 Subject: [PATCH] Silence compiler warnings. --- src/mesa/pipe/softpipe/sp_prim_setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c index 73b18b776bc..0b1b592bbe3 100644 --- a/src/mesa/pipe/softpipe/sp_prim_setup.c +++ b/src/mesa/pipe/softpipe/sp_prim_setup.c @@ -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; -- 2.30.2