mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
util: silence MSVC signed/unsigned comparison warnings
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
539541f2e2
commit
257783b939
1 changed files with 4 additions and 4 deletions
|
|
@ -45,13 +45,13 @@ struct pipe_transfer;
|
|||
static INLINE boolean
|
||||
u_clip_tile(uint x, uint y, uint *w, uint *h, const struct pipe_box *box)
|
||||
{
|
||||
if (x >= box->width)
|
||||
if ((int) x >= box->width)
|
||||
return TRUE;
|
||||
if (y >= box->height)
|
||||
if ((int) y >= box->height)
|
||||
return TRUE;
|
||||
if (x + *w > box->width)
|
||||
if ((int) (x + *w) > box->width)
|
||||
*w = box->width - x;
|
||||
if (y + *h > box->height)
|
||||
if ((int) (y + *h) > box->height)
|
||||
*h = box->height - y;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue