[PATCH 4/5] d3d9/tests: Fix msvc signed vs unsigned mismatch warnings.
Stefan Dösinger
stefan at codeweavers.com
Tue Feb 1 07:58:24 CST 2022
Signed-off-by: Stefan Dösinger <stefan at 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;
--
2.34.1
More information about the wine-devel
mailing list