[Mono-bugs] [Bug 593628] Attempting to JIT compile method Cols.Where(c => !c.Hidden).Sum(c => c.Width)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 4 20:35:23 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=593628

http://bugzilla.novell.com/show_bug.cgi?id=593628#c4


--- Comment #4 from Miguel de Icaza <miguel at novell.com> 2010-04-05 00:35:22 UTC ---
Created an attachment (id=352363)
 --> (http://bugzilla.novell.com/attachment.cgi?id=352363)
Sum and Average patch

Sum and Average patches, this also includes a fix for Average<long> versions,
we need to use checked (...) in these cases to catch this:

long [] x = new long [] { Int64.MaxValue, Int64.MaxValue };
x.Average ();

The above needs to throw an overflow exception with Int64's (with Int32, this
is not the case).

-- 
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