jscript: Use INFINITY macro instead of ret_inf() hack.
This commit is contained in:
parent
1532037bcd
commit
c7c8cd780a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue