Henri Verbeet : tests: Properly compare integers in compare_id().
Module: vkd3d Branch: master Commit: fd28eb8199021cdf19995fc838d7a522d969ceb1 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=fd28eb8199021cdf19995fc8... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Mar 1 13:21:28 2022 +0100 tests: Properly compare integers in compare_id(). Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tests/d3d12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/d3d12.c b/tests/d3d12.c index eb6217b..5067dd9 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)
participants (1)
-
Alexandre Julliard