Commit 153e39fc authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard

d3d8/tests: Avoid abs() on unsigned values in compare_mode().

Mostly because Clang complains. Signed-off-by: 's avatarChip Davis <cdavis@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 49bf4a87
......@@ -1388,8 +1388,8 @@ static int compare_mode(const void *a, const void *b)
{
const struct mode *mode_a = a;
const struct mode *mode_b = b;
unsigned int w = mode_a->w - mode_b->w;
unsigned int h = mode_a->h - mode_b->h;
int w = mode_a->w - mode_b->w;
int h = mode_a->h - mode_b->h;
return abs(w) >= abs(h) ? -w : -h;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment