svga: silence MSVC warning about negating an unsigned value
authorBrian Paul <brianp@vmware.com>
Tue, 16 Oct 2012 23:54:37 +0000 (17:54 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 16 Oct 2012 23:55:39 +0000 (17:55 -0600)
src/gallium/drivers/svga/svga_state_vdecl.c

index 170d3f1b297fc73a10618e50d0961d5b2ba9684d..706d9959ca09de422ee6d27ed75af3b0c0d33282 100644 (file)
@@ -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;
 }