jscript: Use stack_push_int in interp_bneg.
This commit is contained in:
parent
1fba4a6886
commit
424b63119c
@ -2268,7 +2268,7 @@ static HRESULT interp_gteq(exec_ctx_t *ctx)
|
|||||||
/* ECMA-262 3rd Edition 11.4.8 */
|
/* ECMA-262 3rd Edition 11.4.8 */
|
||||||
static HRESULT interp_bneg(exec_ctx_t *ctx)
|
static HRESULT interp_bneg(exec_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
VARIANT *v, r;
|
VARIANT *v;
|
||||||
INT i;
|
INT i;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
@ -2280,9 +2280,7 @@ static HRESULT interp_bneg(exec_ctx_t *ctx)
|
|||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
V_VT(&r) = VT_I4;
|
return stack_push_int(ctx, ~i);
|
||||||
V_I4(&r) = ~i;
|
|
||||||
return stack_push(ctx, &r);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ECMA-262 3rd Edition 11.4.9 */
|
/* ECMA-262 3rd Edition 11.4.9 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user