Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d978dced
Commit
d978dced
authored
Nov 10, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Nov 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Clarify ok() conditions (PVS-Studio).
parent
4ac08080
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
string.c
dlls/ntdll/tests/string.c
+4
-4
No files found.
dlls/ntdll/tests/string.c
View file @
d978dced
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment