jscript: Fixed typo in to_integer.

This commit is contained in:
Jacek Caban 2008-09-21 15:40:38 +02:00 committed by Alexandre Julliard
parent 898cb6fcd4
commit dff4f0b598
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ HRESULT to_integer(script_ctx_t *ctx, VARIANT *v, jsexcept_t *ei, VARIANT *ret)
return hres;
if(V_VT(&num) == VT_I4)
*ret = *v;
*ret = num;
else
num_set_val(ret, V_R8(&num) >= 0.0 ? floor(V_R8(&num)) : -floor(-V_R8(&num)));