forked from Mirrors/wine-wine
jscript: Avoid signed-unsigned integer comparisons.
parent
3221e7fdd0
commit
6b5a18f619
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue