util: fix MSVC signed/unsigned comparison warning in u_upload_mgr.c code
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
ba7bfdeff2
commit
34a5fd2a39
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue