projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8472bb4
)
util: add casts to silence signed/unsigned comparison warnings
author
Brian Paul
<brianp@vmware.com>
Thu, 30 Aug 2012 19:49:30 +0000
(13:49 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 31 Aug 2012 14:04:40 +0000
(08:04 -0600)
src/gallium/auxiliary/util/u_inlines.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_inlines.h
b/src/gallium/auxiliary/util/u_inlines.h
index a1ece415f4676726c82795beef52f008eaeaf8c3..033c100edffd0936baf9e91e03a9e4cf8612f15a 100644
(file)
--- 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