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
2e752a11
Commit
2e752a11
authored
Aug 05, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fix compilation issues when dtoa is defined in headers.
parent
1f2d5563
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
number.c
dlls/jscript/number.c
+3
-3
No files found.
dlls/jscript/number.c
View file @
2e752a11
...
...
@@ -54,7 +54,7 @@ static inline NumberInstance *number_this(vdisp_t *jsthis)
return
is_vclass
(
jsthis
,
JSCLASS_NUMBER
)
?
number_from_vdisp
(
jsthis
)
:
NULL
;
}
static
inline
void
dtoa
(
double
d
,
WCHAR
*
buf
,
int
size
,
int
*
dec_point
)
static
inline
void
number_to_str
(
double
d
,
WCHAR
*
buf
,
int
size
,
int
*
dec_point
)
{
ULONGLONG
l
;
int
i
;
...
...
@@ -113,7 +113,7 @@ static inline jsstr_t *number_to_fixed(double val, int prec)
if
(
buf_size
>
NUMBER_DTOA_SIZE
)
buf_size
=
NUMBER_DTOA_SIZE
;
dtoa
(
val
,
buf
,
buf_size
,
&
dec_point
);
number_to_str
(
val
,
buf
,
buf_size
,
&
dec_point
);
dec_point
++
;
size
=
0
;
if
(
neg
)
...
...
@@ -171,7 +171,7 @@ static inline jsstr_t *number_to_exponential(double val, int prec)
buf_size
=
prec
+
2
;
if
(
buf_size
<
2
||
buf_size
>
NUMBER_DTOA_SIZE
)
buf_size
=
NUMBER_DTOA_SIZE
;
dtoa
(
val
,
buf
,
buf_size
,
&
dec_point
);
number_to_str
(
val
,
buf
,
buf_size
,
&
dec_point
);
buf_size
--
;
if
(
prec
==
-
1
)
for
(;
buf_size
>
1
&&
buf
[
buf_size
-
1
]
==
'0'
;
buf_size
--
)
...
...
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