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
45aee4fd
Commit
45aee4fd
authored
Dec 30, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed some math API assumption that cause test failures on Solaris.
parent
9a16f796
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
global.c
dlls/jscript/global.c
+1
-1
math.c
dlls/jscript/math.c
+21
-4
No files found.
dlls/jscript/global.c
View file @
45aee4fd
...
...
@@ -290,7 +290,7 @@ static HRESULT JSGlobal_escape(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, D
for
(
ptr
=
str
;
*
ptr
;
ptr
++
)
{
if
(
*
ptr
>
0xff
)
len
+=
6
;
else
if
(
isalnum
((
char
)
*
ptr
)
||
*
ptr
==
'*'
||
*
ptr
==
'@'
||
*
ptr
==
'-'
else
if
(
isalnum
((
unsigned
char
)
*
ptr
)
||
*
ptr
==
'*'
||
*
ptr
==
'@'
||
*
ptr
==
'-'
||
*
ptr
==
'_'
||
*
ptr
==
'+'
||
*
ptr
==
'.'
||
*
ptr
==
'/'
)
len
++
;
else
...
...
dlls/jscript/math.c
View file @
45aee4fd
...
...
@@ -100,7 +100,13 @@ static HRESULT Math_acos(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPAR
if
(
FAILED
(
hres
))
return
hres
;
if
(
retv
)
num_set_val
(
retv
,
acos
(
num_val
(
&
v
)));
if
(
retv
)
{
DOUBLE
x
=
num_val
(
&
v
);
if
(
x
<
-
1
.
0
||
x
>
1
.
0
)
num_set_nan
(
retv
);
else
num_set_val
(
retv
,
acos
(
x
));
}
return
S_OK
;
}
...
...
@@ -121,7 +127,13 @@ static HRESULT Math_asin(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPAR
if
(
FAILED
(
hres
))
return
hres
;
if
(
retv
)
num_set_val
(
retv
,
asin
(
num_val
(
&
v
)));
if
(
retv
)
{
DOUBLE
x
=
num_val
(
&
v
);
if
(
x
<
-
1
.
0
||
x
>
1
.
0
)
num_set_nan
(
retv
);
else
num_set_val
(
retv
,
asin
(
x
));
}
return
S_OK
;
}
...
...
@@ -278,8 +290,13 @@ static HRESULT Math_log(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARA
if
(
FAILED
(
hres
))
return
hres
;
if
(
retv
)
num_set_val
(
retv
,
log
(
num_val
(
&
v
)));
if
(
retv
)
{
DOUBLE
x
=
num_val
(
&
v
);
if
(
x
<
-
0
.
0
)
num_set_nan
(
retv
);
else
num_set_val
(
retv
,
log
(
x
));
}
return
S_OK
;
}
...
...
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