diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index df3acb4b3b4..f96594862cd 100644 --- a/dlls/jscript/compile.c +++ b/dlls/jscript/compile.c @@ -518,7 +518,7 @@ static HRESULT compile_new_expression(compiler_ctx_t *ctx, call_expression_t *ex 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) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 983787b7e25..7d9b37a4a0e 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -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 */ 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; DISPPARAMS dp; HRESULT hres; diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h index a842a35e8db..8c70783fab8 100644 --- a/dlls/jscript/engine.h +++ b/dlls/jscript/engine.h @@ -78,7 +78,7 @@ typedef struct { X(neg, 1, 0,0) \ X(neq, 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(null, 1, 0,0) \ X(obj_prop, 1, ARG_BSTR, 0) \