Module: Mesa Branch: master Commit: 34a5fd2a39d463c426327a4fe98fc18e1301370d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34a5fd2a39d463c426327a4fe98fc18e1301370d
Author: Brian Paul <[email protected]> Date: Tue Oct 16 18:32:57 2012 -0600 util: fix MSVC signed/unsigned comparison warning in u_upload_mgr.c code Reviewed-by: Jose Fonseca <[email protected]> --- 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); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
