diff options
author | Brian Paul <[email protected]> | 2012-08-30 13:49:30 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-31 08:04:40 -0600 |
commit | c5f9cf8232952388db23ece3c712e6111328a69e (patch) | |
tree | 3c03d642f8a304ab48eb657348d963fab17fd88d /src/gallium/auxiliary | |
parent | 8472bb4508515cf0f717344ef5cc863b6e97e56a (diff) |
util: add casts to silence signed/unsigned comparison warnings
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_inlines.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |