Signed-off-by: Stefan Dösinger stefan@codeweavers.com --- dlls/d3d9/tests/visual.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 89f9e9cf2c6..f7eb52d1f41 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -88,7 +88,7 @@ static BOOL compare_float(float f, float g, unsigned int ulps) if (y < 0) y = INT_MIN - y;
- if (abs(x - y) > ulps) + if ((unsigned int)abs(x - y) > ulps) return FALSE;
return TRUE; @@ -21950,7 +21950,7 @@ static void test_updatetexture(void) DWORD *ptr = NULL; unsigned int width, height, depth, row_pitch = 0, slice_pitch = 0;
- for (f = 0; f < (texture_types[t].type == D3DRTYPE_CUBETEXTURE ? 6 : 1); ++f) + for (f = 0; f < (texture_types[t].type == D3DRTYPE_CUBETEXTURE ? 6U : 1U); ++f) { width = tests[i].src_width; height = texture_types[t].type != D3DRTYPE_CUBETEXTURE ? tests[i].src_height : tests[i].src_width;