[Mesa-dev] [PATCH 5/8] util: fix MSVC signed/unsigned comparison warning in u_upload_mgr.c code

Brian Paul brian.e.paul at gmail.com
Tue Oct 16 17:35:26 PDT 2012


From: Brian Paul <brianp at vmware.com>

---
 src/gallium/auxiliary/util/u_upload_mgr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c
index b62973d..ee1c688 100644
--- 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);
-- 
1.7.4.1



More information about the mesa-dev mailing list