Jacek Caban : jscript: Use stack_push_int in interp_bneg.
Alexandre Julliard
julliard at winehq.org
Fri Apr 27 10:55:46 CDT 2012
Module: wine
Branch: master
Commit: 424b63119c06796b75f60653c9850d97bf3951a8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=424b63119c06796b75f60653c9850d97bf3951a8
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Apr 27 10:49:26 2012 +0200
jscript: Use stack_push_int in interp_bneg.
---
dlls/jscript/engine.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index 35339c8..e15ef52 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -2268,7 +2268,7 @@ static HRESULT interp_gteq(exec_ctx_t *ctx)
/* ECMA-262 3rd Edition 11.4.8 */
static HRESULT interp_bneg(exec_ctx_t *ctx)
{
- VARIANT *v, r;
+ VARIANT *v;
INT i;
HRESULT hres;
@@ -2280,9 +2280,7 @@ static HRESULT interp_bneg(exec_ctx_t *ctx)
if(FAILED(hres))
return hres;
- V_VT(&r) = VT_I4;
- V_I4(&r) = ~i;
- return stack_push(ctx, &r);
+ return stack_push_int(ctx, ~i);
}
/* ECMA-262 3rd Edition 11.4.9 */
More information about the wine-cvs
mailing list