Skip to content
Snippets Groups Projects
Commit dff4f0b5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

jscript: Fixed typo in to_integer.

parent 898cb6fc
No related branches found
No related tags found
No related merge requests found
......@@ -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)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment