d3d10core/tests: Silence absolute value warnings (Clang).
Signed-off-by: Charles Davis <cdavis5x@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7276d5fac1
commit
65999e26b2
|
@ -71,16 +71,16 @@ static BOOL compare_float(float f, float g, unsigned int ulps)
|
||||||
|
|
||||||
static BOOL compare_color(DWORD c1, DWORD c2, BYTE max_diff)
|
static BOOL compare_color(DWORD c1, DWORD c2, BYTE max_diff)
|
||||||
{
|
{
|
||||||
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
|
if (abs((int)(c1 & 0xff) - (int)(c2 & 0xff)) > max_diff)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
c1 >>= 8; c2 >>= 8;
|
c1 >>= 8; c2 >>= 8;
|
||||||
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
|
if (abs((int)(c1 & 0xff) - (int)(c2 & 0xff)) > max_diff)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
c1 >>= 8; c2 >>= 8;
|
c1 >>= 8; c2 >>= 8;
|
||||||
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
|
if (abs((int)(c1 & 0xff) - (int)(c2 & 0xff)) > max_diff)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
c1 >>= 8; c2 >>= 8;
|
c1 >>= 8; c2 >>= 8;
|
||||||
if (abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
|
if (abs((int)(c1 & 0xff) - (int)(c2 & 0xff)) > max_diff)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue