Fixed builtin_dmod not working on Win32.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user