mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
jscript: Make flags parameter of OP_regexp unsigned.
This commit is contained in:
parent
0d5defafd4
commit
e273636d4d
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user