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
cc6205f1
Commit
cc6205f1
authored
Apr 25, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fix toExponential behavior when exponent is 0.
parent
99c6eb0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
number.c
dlls/jscript/number.c
+6
-3
No files found.
dlls/jscript/number.c
View file @
cc6205f1
...
...
@@ -206,9 +206,12 @@ static inline void number_to_exponential(double val, int prec, BSTR *out)
str
[
size
++
]
=
'-'
;
dec_point
=
-
dec_point
;
}
for
(
str
[
size
]
=
'0'
,
size
+=
exp_size
-
1
;
dec_point
>
0
;
dec_point
/=
10
)
str
[
size
--
]
=
'0'
+
dec_point
%
10
;
size
+=
exp_size
+
1
;
size
+=
exp_size
;
do
{
str
[
--
size
]
=
'0'
+
dec_point
%
10
;
dec_point
/=
10
;
}
while
(
dec_point
>
0
);
size
+=
exp_size
;
str
[
size
]
=
0
;
*
out
=
str
;
...
...
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