[webkit-reviews] review requested: [Bug 9678] fmod function of MS CRT returns NaN for x / Inf : [Attachment 9128] MS CRT fmod bug workaround where x % (1/0) = NaN, not x.

bugzilla-request-daemon at opendarwin.org bugzilla-request-daemon at opendarwin.org
Sat Jul 1 15:11:38 PDT 2006


Björn Graf (boki) <bjoern.graf at gmail.com> has asked  for review:
Bug 9678: fmod function of MS CRT returns NaN for x / Inf
http://bugzilla.opendarwin.org/show_bug.cgi?id=9678

Attachment 9128: MS CRT fmod bug workaround where x % (1/0) = NaN, not x.
http://bugzilla.opendarwin.org/attachment.cgi?id=9128&action=edit

------- Additional Comments from Björn Graf (boki) <bjoern.graf at gmail.com>
The workaround checks the arguments for infinity and only calls fmod when the
divisor is not infinite. Otherwise it returns the dividend.



More information about the webkit-reviews mailing list