Skip to content
Commit 5d6b43f6 authored by Keith Packard's avatar Keith Packard Committed by Stephanos Ioannidis
Browse files

tests/timer_api: Use correct 'abs' macro with correct type parameter



Subtracting with a uint64_t operand yields a uint64_t result, for which
the absolute value is not terribly interesting. Cast the operand to
int64_t.

Use llabs instead of abs as abs takes an int parameter and not an
int64_t. This appears to work even with the minimal C library.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent de7a944f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment