From: Brian Paul Date: Thu, 30 Aug 2012 19:49:30 +0000 (-0600) Subject: util: add casts to silence signed/unsigned comparison warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5f9cf8232952388db23ece3c712e6111328a69e;p=mesa.git util: add casts to silence signed/unsigned comparison warnings --- diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index a1ece415f46..033c100edff 100644 --- a/src/gallium/auxiliary/util/u_inlines.h +++ b/src/gallium/auxiliary/util/u_inlines.h @@ -301,8 +301,8 @@ pipe_buffer_flush_mapped_range(struct pipe_context *pipe, int transfer_offset; assert(length); - assert(transfer->box.x <= offset); - assert(offset + length <= transfer->box.x + transfer->box.width); + assert(transfer->box.x <= (int) offset); + assert((int) (offset + length) <= transfer->box.x + transfer->box.width); /* Match old screen->buffer_flush_mapped_range() behaviour, where * offset parameter is relative to the start of the buffer, not the