[PATCH vkd3d 02/10] tests: Properly compare integers in compare_id().

Henri Verbeet hverbeet at codeweavers.com
Tue Mar 1 06:21:28 CST 2022


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 tests/d3d12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/d3d12.c b/tests/d3d12.c
index eb6217bc..5067dd97 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -22535,7 +22535,7 @@ static unsigned int read_uav_counter(const struct test_context *context,
 
 static int compare_id(const void *a, const void *b)
 {
-    return *(int *)a - *(int *)b;
+    return vkd3d_u32_compare(*(uint32_t *)a, *(uint32_t *)b);
 }
 
 static void test_uav_counters(void)
-- 
2.20.1




More information about the wine-devel mailing list