Jacek Caban : jscript: Make flags parameter of OP_regexp unsigned.
Alexandre Julliard
julliard at winehq.org
Mon May 14 14:26:03 CDT 2012
Module: wine
Branch: master
Commit: e273636d4d362986878c399886c8013952c471fc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e273636d4d362986878c399886c8013952c471fc
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sat May 12 16:21:44 2012 +0200
jscript: Make flags parameter of OP_regexp 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 f965948..bd11621 100644
--- a/dlls/jscript/compile.c
+++ b/dlls/jscript/compile.c
@@ -733,7 +733,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal)
return E_OUTOFMEMORY;
instr_ptr(ctx, instr)->arg1.str = str;
- instr_ptr(ctx, instr)->arg2.lng = literal->u.regexp.flags;
+ instr_ptr(ctx, instr)->arg2.uint = literal->u.regexp.flags;
return S_OK;
}
default:
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index 7d9b37a..bb42899 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -1206,7 +1206,7 @@ static HRESULT interp_str(exec_ctx_t *ctx)
static HRESULT interp_regexp(exec_ctx_t *ctx)
{
const WCHAR *source = ctx->code->instrs[ctx->ip].arg1.str;
- const LONG flags = get_op_int(ctx, 1);
+ const unsigned flags = get_op_uint(ctx, 1);
jsdisp_t *regexp;
VARIANT v;
HRESULT hres;
diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h
index 8c70783..4a2c89e 100644
--- a/dlls/jscript/engine.h
+++ b/dlls/jscript/engine.h
@@ -90,7 +90,7 @@ typedef struct {
X(preinc, 1, ARG_INT, 0) \
X(push_except,1, ARG_ADDR, ARG_BSTR) \
X(push_scope, 1, 0,0) \
- X(regexp, 1, ARG_STR, ARG_INT) \
+ X(regexp, 1, ARG_STR, ARG_UINT) \
X(rshift, 1, 0,0) \
X(rshift2, 1, 0,0) \
X(str, 1, ARG_STR, 0) \
More information about the wine-cvs
mailing list