Jacek Caban : jscipt: Make arg_cnt parameter of OP_new unsigned.
Alexandre Julliard
julliard at winehq.org
Mon May 14 14:26:03 CDT 2012
Module: wine
Branch: master
Commit: 0d5defafd413905866f80323be5340e0040fc539
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d5defafd413905866f80323be5340e0040fc539
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sat May 12 16:21:31 2012 +0200
jscipt: Make arg_cnt parameter of OP_new unsigned.
---
dlls/jscript/compile.c | 2 +-
dlls/jscript/engine.c | 2 +-
dlls/jscript/engine.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c
index df3acb4..f965948 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 983787b..7d9b37a 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 a842a35..8c70783 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) \
More information about the wine-cvs
mailing list