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
a38ff8d7
Commit
a38ff8d7
authored
Jul 21, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix printf format warnings with ptrdiff_t.
parent
c64a0fd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
string.c
dlls/msvcrt/tests/string.c
+6
-6
No files found.
dlls/msvcrt/tests/string.c
View file @
a38ff8d7
...
...
@@ -1102,23 +1102,23 @@ static void test__strtod(void)
d
=
strtod
(
double1
,
&
end
);
ok
(
almost_equal
(
d
,
12
.
1
),
"d = %lf
\n
"
,
d
);
ok
(
end
==
double1
+
4
,
"incorrect end (%d)
\n
"
,
end
-
double1
);
ok
(
end
==
double1
+
4
,
"incorrect end (%d)
\n
"
,
(
int
)(
end
-
double1
)
);
d
=
strtod
(
double2
,
&
end
);
ok
(
almost_equal
(
d
,
-
13
.
721
),
"d = %lf
\n
"
,
d
);
ok
(
end
==
double2
+
7
,
"incorrect end (%d)
\n
"
,
end
-
double2
);
ok
(
end
==
double2
+
7
,
"incorrect end (%d)
\n
"
,
(
int
)(
end
-
double2
)
);
d
=
strtod
(
double3
,
&
end
);
ok
(
almost_equal
(
d
,
0
),
"d = %lf
\n
"
,
d
);
ok
(
end
==
double3
,
"incorrect end (%d)
\n
"
,
end
-
double3
);
ok
(
end
==
double3
,
"incorrect end (%d)
\n
"
,
(
int
)(
end
-
double3
)
);
d
=
strtod
(
double4
,
&
end
);
ok
(
almost_equal
(
d
,
210000000000
.
0
),
"d = %lf
\n
"
,
d
);
ok
(
end
==
double4
+
6
,
"incorrect end (%d)
\n
"
,
end
-
double4
);
ok
(
end
==
double4
+
6
,
"incorrect end (%d)
\n
"
,
(
int
)(
end
-
double4
)
);
d
=
strtod
(
double5
,
&
end
);
ok
(
almost_equal
(
d
,
214
.
353
),
"d = %lf
\n
"
,
d
);
ok
(
end
==
double5
+
9
,
"incorrect end (%d)
\n
"
,
end
-
double5
);
ok
(
end
==
double5
+
9
,
"incorrect end (%d)
\n
"
,
(
int
)(
end
-
double5
)
);
d
=
strtod
(
"12.1d2"
,
NULL
);
ok
(
almost_equal
(
d
,
12.1e2
),
"d = %lf
\n
"
,
d
);
...
...
@@ -1156,7 +1156,7 @@ static void test__strtod(void)
errno
=
0xdeadbeef
;
d
=
strtod
(
overflow
,
&
end
);
ok
(
errno
==
ERANGE
,
"errno = %x
\n
"
,
errno
);
ok
(
end
==
overflow
+
21
,
"incorrect end (%d)
\n
"
,
end
-
overflow
);
ok
(
end
==
overflow
+
21
,
"incorrect end (%d)
\n
"
,
(
int
)(
end
-
overflow
)
);
errno
=
0xdeadbeef
;
strtod
(
"-1d309"
,
NULL
);
...
...
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