From: Brian Paul Date: Tue, 16 Oct 2012 23:54:37 +0000 (-0600) Subject: svga: silence MSVC warning about negating an unsigned value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0087f5ce51a74b0c5a467f7f9a3967fff65967b0;p=mesa.git svga: silence MSVC warning about negating an unsigned value --- diff --git a/src/gallium/drivers/svga/svga_state_vdecl.c b/src/gallium/drivers/svga/svga_state_vdecl.c index 170d3f1b297..706d9959ca0 100644 --- a/src/gallium/drivers/svga/svga_state_vdecl.c +++ b/src/gallium/drivers/svga/svga_state_vdecl.c @@ -127,7 +127,7 @@ emit_hw_vs_vdecl(struct svga_context *svga, unsigned dirty) vb->buffer ); } - svga_hwtnl_set_index_bias( svga->hwtnl, -neg_bias ); + svga_hwtnl_set_index_bias( svga->hwtnl, -(int) neg_bias ); return PIPE_OK; }