[Mono-list] Can there be a problem with System.Math.Max?
Maser, Dan
Dan.Maser at inin.com
Tue Jul 3 13:34:20 EDT 2007
Thanks, I created
http://bugzilla.ximian.com/show_bug.cgi?id=82001
-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan
Sent: Tuesday, July 03, 2007 11:46 AM
To: Mono-list at lists.ximian.com
Subject: Re: [Mono-list] Can there be a problem with System.Math.Max?
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 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?
Please file a bug and mention that it doesn't occur with
`mono --optimize=-all'.
My mono version is: Mono JIT compiler version 1.2.4 (/trunk/ r80002),
so it's probably not a fresh bug.
Robert
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list