jscipt: Make arg_cnt parameter of OP_new unsigned.

This commit is contained in:
Jacek Caban 2012-05-12 16:21:31 +02:00 committed by Alexandre Julliard
parent efe744a8ba
commit 0d5defafd4
3 changed files with 3 additions and 3 deletions

View File

@ -518,7 +518,7 @@ static HRESULT compile_new_expression(compiler_ctx_t *ctx, call_expression_t *ex
arg_cnt++; arg_cnt++;
} }
return push_instr_int(ctx, OP_new, arg_cnt); return push_instr_uint(ctx, OP_new, arg_cnt);
} }
static HRESULT compile_call_expression(compiler_ctx_t *ctx, call_expression_t *expr, BOOL *no_ret) static HRESULT compile_call_expression(compiler_ctx_t *ctx, call_expression_t *expr, BOOL *no_ret)

View File

@ -987,7 +987,7 @@ static void jsstack_to_dp(exec_ctx_t *ctx, unsigned arg_cnt, DISPPARAMS *dp)
/* ECMA-262 3rd Edition 11.2.2 */ /* ECMA-262 3rd Edition 11.2.2 */
static HRESULT interp_new(exec_ctx_t *ctx) static HRESULT interp_new(exec_ctx_t *ctx)
{ {
const LONG arg = get_op_int(ctx, 0); const unsigned arg = get_op_uint(ctx, 0);
VARIANT *constr, v; VARIANT *constr, v;
DISPPARAMS dp; DISPPARAMS dp;
HRESULT hres; HRESULT hres;

View File

@ -78,7 +78,7 @@ typedef struct {
X(neg, 1, 0,0) \ X(neg, 1, 0,0) \
X(neq, 1, 0,0) \ X(neq, 1, 0,0) \
X(neq2, 1, 0,0) \ X(neq2, 1, 0,0) \
X(new, 1, ARG_INT, 0) \ X(new, 1, ARG_UINT, 0) \
X(new_obj, 1, 0,0) \ X(new_obj, 1, 0,0) \
X(null, 1, 0,0) \ X(null, 1, 0,0) \
X(obj_prop, 1, ARG_BSTR, 0) \ X(obj_prop, 1, ARG_BSTR, 0) \