Mesa (master): svga: silence MSVC warning about negating an unsigned value
Brian Paul
brianp at kemper.freedesktop.org
Wed Oct 17 00:15:15 UTC 2012
Module: Mesa
Branch: master
Commit: 0087f5ce51a74b0c5a467f7f9a3967fff65967b0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0087f5ce51a74b0c5a467f7f9a3967fff65967b0
Author: Brian Paul <brianp at vmware.com>
Date: Tue Oct 16 17:54:37 2012 -0600
svga: silence MSVC warning about negating an unsigned value
---
src/gallium/drivers/svga/svga_state_vdecl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_state_vdecl.c b/src/gallium/drivers/svga/svga_state_vdecl.c
index 170d3f1..706d995 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;
}
More information about the mesa-commit
mailing list