jscript: Use INFINITY macro instead of ret_inf() hack.

This commit is contained in:
Jacek Caban 2012-06-20 11:19:11 +02:00 committed by Alexandre Julliard
parent 1532037bcd
commit c7c8cd780a
2 changed files with 1 additions and 8 deletions

View File

@ -447,13 +447,6 @@ static inline void num_set_inf(VARIANT *v, BOOL positive)
#endif
}
static inline DOUBLE ret_inf(void)
{
VARIANT v;
num_set_inf(&v, TRUE);
return V_R8(&v);
}
static inline void var_set_jsdisp(VARIANT *v, jsdisp_t *jsdisp)
{
V_VT(v) = VT_DISPATCH;

View File

@ -351,7 +351,7 @@ static HRESULT str_to_number(BSTR str, double *ret)
if(*ptr)
*ret = NAN;
else
*ret = neg ? -ret_inf() : ret_inf();
*ret = neg ? -INFINITY : INFINITY;
return S_OK;
}