=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll/tests: Clarify ok() conditions (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 11 11:04:45 CST 2014


Module: wine
Branch: master
Commit: d978dcedd5a376a02ecc734720fe7afc92e81cfd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d978dcedd5a376a02ecc734720fe7afc92e81cfd

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Nov 10 21:06:15 2014 +0100

ntdll/tests: Clarify ok() conditions (PVS-Studio).

---

 dlls/ntdll/tests/string.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/ntdll/tests/string.c b/dlls/ntdll/tests/string.c
index 56b7584..adaa7c3 100644
--- a/dlls/ntdll/tests/string.c
+++ b/dlls/ntdll/tests/string.c
@@ -1083,8 +1083,8 @@ static void test_atoi64(void)
 	result = p_atoi64(str2longlong[test_num].str);
         if (str2longlong[test_num].overflow)
             ok(result == str2longlong[test_num].value ||
-               (result == (str2longlong[test_num].overflow == -1) ?
-                ULL(0x80000000,0x00000000) : ULL(0x7fffffff,0xffffffff)),
+               (result == ((str2longlong[test_num].overflow == -1) ?
+                ULL(0x80000000,0x00000000) : ULL(0x7fffffff,0xffffffff))),
                "(test %d): call failed: _atoi64(\"%s\") has result 0x%x%08x, expected: 0x%x%08x\n",
                test_num, str2longlong[test_num].str, (DWORD)(result >> 32), (DWORD)result,
                (DWORD)(str2longlong[test_num].value >> 32), (DWORD)str2longlong[test_num].value);
@@ -1108,8 +1108,8 @@ static void test_wtoi64(void)
 	result = p_wtoi64(uni.Buffer);
         if (str2longlong[test_num].overflow)
             ok(result == str2longlong[test_num].value ||
-               (result == (str2longlong[test_num].overflow == -1) ?
-                ULL(0x80000000,0x00000000) : ULL(0x7fffffff,0xffffffff)),
+               (result == ((str2longlong[test_num].overflow == -1) ?
+                ULL(0x80000000,0x00000000) : ULL(0x7fffffff,0xffffffff))),
                "(test %d): call failed: _atoi64(\"%s\") has result 0x%x%08x, expected: 0x%x%08x\n",
                test_num, str2longlong[test_num].str, (DWORD)(result >> 32), (DWORD)result,
                (DWORD)(str2longlong[test_num].value >> 32), (DWORD)str2longlong[test_num].value);




More information about the wine-cvs mailing list