jscript: Make flags parameter of OP_regexp unsigned.

This commit is contained in:
Jacek Caban 2012-05-12 16:21:44 +02:00 committed by Alexandre Julliard
parent 0d5defafd4
commit e273636d4d
3 changed files with 3 additions and 3 deletions

View File

@ -733,7 +733,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
instr_ptr(ctx, instr)->arg1.str = str; 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; return S_OK;
} }
default: default:

View File

@ -1206,7 +1206,7 @@ static HRESULT interp_str(exec_ctx_t *ctx)
static HRESULT interp_regexp(exec_ctx_t *ctx) static HRESULT interp_regexp(exec_ctx_t *ctx)
{ {
const WCHAR *source = ctx->code->instrs[ctx->ip].arg1.str; 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; jsdisp_t *regexp;
VARIANT v; VARIANT v;
HRESULT hres; HRESULT hres;

View File

@ -90,7 +90,7 @@ typedef struct {
X(preinc, 1, ARG_INT, 0) \ X(preinc, 1, ARG_INT, 0) \
X(push_except,1, ARG_ADDR, ARG_BSTR) \ X(push_except,1, ARG_ADDR, ARG_BSTR) \
X(push_scope, 1, 0,0) \ 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(rshift, 1, 0,0) \
X(rshift2, 1, 0,0) \ X(rshift2, 1, 0,0) \
X(str, 1, ARG_STR, 0) \ X(str, 1, ARG_STR, 0) \