jscript: Avoid signed-unsigned integer comparisons.

oldstable
Andrew Talbot 2013-02-09 22:32:02 +00:00 committed by Alexandre Julliard
parent 3221e7fdd0
commit 6b5a18f619
4 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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};