Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
84c1f667
Commit
84c1f667
authored
Oct 19, 2004
by
Walt Ogburn
Committed by
Alexandre Julliard
Oct 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep "trailing" zeros on whole number part of a decimal.
Add an example of this to tests.
parent
f5c25e80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
vartest.c
dlls/oleaut32/tests/vartest.c
+6
-0
variant.c
dlls/oleaut32/variant.c
+0
-7
No files found.
dlls/oleaut32/tests/vartest.c
View file @
84c1f667
...
...
@@ -1048,6 +1048,12 @@ static void test_VarParseNumFromStr(void)
CONVERT
(
"-0.51"
,
NUMPRS_STD
);
EXPECT
(
2
,
NUMPRS_STD
,
NUMPRS_NEG
|
NUMPRS_DECIMAL
|
NUMPRS_LEADING_MINUS
,
5
,
0
,
-
2
);
EXPECT2
(
5
,
1
);
/* Keep trailing zeros on whole number part of a decimal */
CONVERT
(
"40.1"
,
NUMPRS_STD
);
EXPECT
(
3
,
NUMPRS_STD
,
NUMPRS_DECIMAL
,
4
,
0
,
-
1
);
EXPECT2
(
4
,
0
);
EXPECTRGB
(
2
,
1
);
}
static
HRESULT
(
WINAPI
*
pVarNumFromParseNum
)(
NUMPARSE
*
,
BYTE
*
,
ULONG
,
VARIANT
*
);
...
...
dlls/oleaut32/variant.c
View file @
84c1f667
...
...
@@ -1735,13 +1735,6 @@ HRESULT WINAPI VarParseNumFromStr(OLECHAR *lpszStr, LCID lcid, ULONG dwFlags,
pNumprs
->
dwOutFlags
|=
NUMPRS_DECIMAL
;
cchUsed
++
;
/* Remove trailing zeros from the whole number part */
while
(
pNumprs
->
cDig
>
1
&&
!
rgbTmp
[
pNumprs
->
cDig
-
1
])
{
pNumprs
->
nPwr10
++
;
pNumprs
->
cDig
--
;
}
/* If we have no digits so far, skip leading zeros */
if
(
!
pNumprs
->
cDig
)
{
...
...
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