projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba7bfde
)
util: fix MSVC signed/unsigned comparison warning in u_upload_mgr.c code
author
Brian Paul
<brianp@vmware.com>
Wed, 17 Oct 2012 00:32:57 +0000
(18:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 17 Oct 2012 16:13:30 +0000
(10:13 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_upload_mgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_upload_mgr.c
b/src/gallium/auxiliary/util/u_upload_mgr.c
index b62973de6cbce80d3256d0f92abcb3f59f309403..ee1c6881ef2cad9df468f082cec53f2bb1de47f7 100644
(file)
--- a/
src/gallium/auxiliary/util/u_upload_mgr.c
+++ b/
src/gallium/auxiliary/util/u_upload_mgr.c
@@
-76,7
+76,7
@@
void u_upload_unmap( struct u_upload_mgr *upload )
{
if (upload->transfer) {
struct pipe_box *box = &upload->transfer->box;
- if (upload->offset > box->x) {
+ if (
(int)
upload->offset > box->x) {
pipe_buffer_flush_mapped_range(upload->pipe, upload->transfer,
box->x, upload->offset - box->x);