[Mono-bugs] [Bug 596339] Converting double.NaN to int doesn't generate OverflowException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 15 09:56:04 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=596339
http://bugzilla.novell.com/show_bug.cgi?id=596339#c4
Jonathan Pryor <jpryor at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Jonathan Pryor <jpryor at novell.com> 2010-06-15 13:56:03 UTC ---
Fixed in trunk, r158945:
2010-06-15 Jonathan Pryor <jpryor at novell.com>
* System/Convert.cs: Instead of manually checking for NaN, Infinity,
etc., use `checked` expressions to generate OverflowExceptions.
Ensure that OverflowExceptions are generated for needed types.
Fixes #596339
* Test/System/ConvertTest.cs: Add tests for #596339.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list