Fixed builtin_dmod not working on Win32.

This commit is contained in:
David Anderson
2008-07-31 15:42:03 -05:00
parent 8dd5dcb849
commit 6ecb4b3bb6

View File

@@ -66,7 +66,7 @@ jsdouble FASTCALL builtin_dmod(jsdouble a, jsdouble b)
jsdouble r;
#ifdef XP_WIN
/* Workaround MS fmod bug where 42 % (1/0) => NaN, not 42. */
if (!(JSDOUBLE_IS_FINITE(a) && JSDOUBLE_IS_INFINITE(b)))
if (JSDOUBLE_IS_FINITE(a) && JSDOUBLE_IS_INFINITE(b))
r = a;
else
#endif