[Mono-list] Can there be a problem with System.Math.Max?

2007-07-03 Thread Maser, Dan
I updated to the latest SVN code this morning and noticed that the following code int a = 100; int b = -2147483647; System.Console.WriteLine(String.Format(Math.Max(a, b) is {0}, Math.Max(a, b))); Prints -2147483647 when I'd expect it to print 100. Looking at the source code to

Re: [Mono-list] Can there be a problem with System.Math.Max?

2007-07-03 Thread Felipe Almeida Lessa
On 7/3/07, Maser, Dan [EMAIL PROTECTED] wrote: Prints -2147483647 when I'd expect it to print 100. Looking at the source code to Math.Max in class/corelib/System/Math.cs I don't see any problem, though. Can someone else verify this? Don't have SVN here, but on mono 1.2.3.1 it's working fine.

Re: [Mono-list] Can there be a problem with System.Math.Max?

2007-07-03 Thread Robert Jordan
Maser, Dan wrote: I updated to the latest SVN code this morning and noticed that the following code int a = 100; int b = -2147483647; System.Console.WriteLine(String.Format(Math.Max(a, b) is {0}, Math.Max(a, b))); Prints -2147483647 when I'd expect it to print 100. Looking

Re: [Mono-list] Can there be a problem with System.Math.Max?

2007-07-03 Thread Maser, Dan
Thanks, I created http://bugzilla.ximian.com/show_bug.cgi?id=82001 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Jordan Sent: Tuesday, July 03, 2007 11:46 AM To: Mono-list@lists.ximian.com Subject: Re: [Mono-list] Can there be a problem

Re: [Mono-list] Can there be a problem with System.Math.Max?

2007-07-03 Thread Paolo Molaro
On 07/03/07 Maser, Dan wrote: I updated to the latest SVN code this morning and noticed that the following code int a = 100; int b = -2147483647; System.Console.WriteLine(String.Format(Math.Max(a, b) is {0}, Math.Max(a, b))); Fixed in svn. Thanks! lupus --