st/mesa: add casts to silence MSVC warnings

This commit is contained in:
Brian Paul
2013-06-26 09:34:02 -06:00
parent 202299d16e
commit bc6eb8068f
5 changed files with 8 additions and 8 deletions

View File

@@ -205,7 +205,7 @@ static void st_bind_ubos(struct st_context *st,
* Take the minimum just to be sure.
*/
if (!binding->AutomaticSize)
cb.buffer_size = MIN2(cb.buffer_size, binding->Size);
cb.buffer_size = MIN2(cb.buffer_size, (unsigned) binding->Size);
}
else {
cb.buffer_offset = 0;