Skip to content
Snippets Groups Projects
Commit d44c8e9f authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard
Browse files

tests: Do not use llabs(3) on an unsigned difference.

parent 26caa713
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment