Commit e273636d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Make flags parameter of OP_regexp unsigned.

parent 0d5defaf
......@@ -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:
......
......@@ -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;
......
......@@ -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) \
......
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