kernel32/tests: Avoid using abs on ULONGLONG values.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-05-27 23:55:35 +02:00 committed by Alexandre Julliard
parent 90f81e6198
commit 0a3a2556c1
1 changed files with 1 additions and 1 deletions

View File

@ -3546,7 +3546,7 @@ static BOOL check_file_time( const FILETIME *ft1, const FILETIME *ft2, UINT tole
{
ULONGLONG t1 = ((ULONGLONG)ft1->dwHighDateTime << 32) | ft1->dwLowDateTime;
ULONGLONG t2 = ((ULONGLONG)ft2->dwHighDateTime << 32) | ft2->dwLowDateTime;
return abs(t1 - t2) <= tolerance;
return (t1 > t2 ? t1 - t2 : t2 - t1) <= tolerance;
}
static void test_ReplaceFileA(void)