mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
util: add casts to silence signed/unsigned comparison warnings
This commit is contained in:
parent
8472bb4508
commit
c5f9cf8232
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue