util: fix MSVC signed/unsigned comparison warning in u_upload_mgr.c code
authorBrian Paul <brianp@vmware.com>
Wed, 17 Oct 2012 00:32:57 +0000 (18:32 -0600)
committerBrian 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

index b62973de6cbce80d3256d0f92abcb3f59f309403..ee1c6881ef2cad9df468f082cec53f2bb1de47f7 100644 (file)
@@ -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);