jscipt: Make arg_cnt parameter of OP_new unsigned.
This commit is contained in:
parent
efe744a8ba
commit
0d5defafd4
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue