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
38666006
Commit
38666006
authored
Dec 26, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr90/tests: Improve floats comparison in _atoflt tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9b6c9b08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
msvcr90.c
dlls/msvcr90/tests/msvcr90.c
+1
-6
No files found.
dlls/msvcr90/tests/msvcr90.c
View file @
38666006
...
@@ -234,11 +234,6 @@ static int cb_called[4];
...
@@ -234,11 +234,6 @@ static int cb_called[4];
static
int
g_qsort_s_context_counter
;
static
int
g_qsort_s_context_counter
;
static
int
g_bsearch_s_context_counter
;
static
int
g_bsearch_s_context_counter
;
static
inline
int
almost_equal_f
(
float
f1
,
float
f2
)
{
return
f1
-
f2
>
-
1e-30
&&
f1
-
f2
<
1e-30
;
}
/* ########## */
/* ########## */
/* thiscall emulation */
/* thiscall emulation */
...
@@ -1009,7 +1004,7 @@ if (0)
...
@@ -1009,7 +1004,7 @@ if (0)
_atoflt_testdata
[
i
].
ret
,
_atoflt_testdata
[
i
].
str
);
_atoflt_testdata
[
i
].
ret
,
_atoflt_testdata
[
i
].
str
);
if
(
ret
==
0
)
if
(
ret
==
0
)
ok
(
almost_equal_f
(
flt
.
f
,
_atoflt_testdata
[
i
].
flt
)
,
"got %f, expected %f, for %s
\n
"
,
flt
.
f
,
ok
(
flt
.
f
==
_atoflt_testdata
[
i
].
flt
,
"got %f, expected %f, for %s
\n
"
,
flt
.
f
,
_atoflt_testdata
[
i
].
flt
,
_atoflt_testdata
[
i
].
str
);
_atoflt_testdata
[
i
].
flt
,
_atoflt_testdata
[
i
].
str
);
i
++
;
i
++
;
...
...
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