Commit 0d5defaf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscipt: Make arg_cnt parameter of OP_new unsigned.

parent efe744a8
......@@ -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)
......
......@@ -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;
......
......@@ -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) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment