Signed-off-by: Chip Davis cdavis@codeweavers.com --- tests/d3d12.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/d3d12.c b/tests/d3d12.c index c4ec41a..6de062a 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -96,7 +96,9 @@ static bool compare_uint16(uint16_t a, uint16_t b, unsigned int max_diff)
static bool compare_uint64(uint64_t a, uint64_t b, unsigned int max_diff) { - return llabs(a - b) <= max_diff; + uint64_t diff = a > b ? a - b : b - a; + + return diff <= max_diff; }
static ULONG get_refcount(void *iface)