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
6b5a18f6
Commit
6b5a18f6
authored
Feb 09, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Avoid signed-unsigned integer comparisons.
parent
3221e7fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
date.c
dlls/jscript/date.c
+1
-1
error.c
dlls/jscript/error.c
+1
-1
function.c
dlls/jscript/function.c
+4
-3
regexp.c
dlls/jscript/regexp.c
+1
-1
No files found.
dlls/jscript/date.c
View file @
6b5a18f6
...
...
@@ -2236,7 +2236,7 @@ static inline HRESULT date_parse(jsstr_t *input_str, double *ret) {
}
else
{
/* Month or garbage */
int
j
;
unsigned
int
j
;
for
(
size
=
i
;
parse
[
size
]
>=
'A'
&&
parse
[
size
]
<=
'Z'
;
size
++
);
size
-=
i
;
...
...
dlls/jscript/error.c
View file @
6b5a18f6
...
...
@@ -342,7 +342,7 @@ HRESULT init_error_constr(script_ctx_t *ctx, jsdisp_t *object_prototype)
SyntaxErrorConstr_value
,
TypeErrorConstr_value
,
URIErrorConstr_value
};
jsdisp_t
*
err
;
INT
i
;
unsigned
int
i
;
jsstr_t
*
str
;
HRESULT
hres
;
...
...
dlls/jscript/function.c
View file @
6b5a18f6
...
...
@@ -755,7 +755,8 @@ static HRESULT construct_function(script_ctx_t *ctx, unsigned argc, jsval_t *arg
bytecode_t
*
code
;
jsdisp_t
*
function
;
jsstr_t
**
params
=
NULL
;
int
i
=
0
,
j
=
0
;
unsigned
int
i
=
0
;
int
j
=
0
;
HRESULT
hres
=
S_OK
;
static
const
WCHAR
function_anonymousW
[]
=
{
'f'
,
'u'
,
'n'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
' '
,
'a'
,
'n'
,
'o'
,
'n'
,
'y'
,
'm'
,
'o'
,
'u'
,
's'
,
'('
};
...
...
@@ -809,8 +810,8 @@ static HRESULT construct_function(script_ctx_t *ctx, unsigned argc, jsval_t *arg
}
}
while
(
--
i
>=
0
)
jsstr_release
(
params
[
i
]);
while
(
i
)
jsstr_release
(
params
[
--
i
]);
heap_free
(
params
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/regexp.c
View file @
6b5a18f6
...
...
@@ -3596,7 +3596,7 @@ static HRESULT create_match_array(script_ctx_t *ctx, jsstr_t *input, const match
{
jsdisp_t
*
array
;
jsstr_t
*
str
;
int
i
;
DWORD
i
;
HRESULT
hres
=
S_OK
;
static
const
WCHAR
indexW
[]
=
{
'i'
,
'n'
,
'd'
,
'e'
,
'x'
,
0
};
...
...
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