[Mono-bugs] [Bug 56223][Blo] Changed - long.MinValue returns a positive integer on Solaris 8
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 31 Mar 2004 08:01:48 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gkodinov@openlinksw.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=56223
--- shadow/56223 2004-03-31 07:48:00.000000000 -0500
+++ shadow/56223.tmp.16624 2004-03-31 08:01:48.000000000 -0500
@@ -48,6 +48,33 @@
Does this mean you are using current CVS and still has this problem ?
Also, what does 'solaris pb' means ?
I'm compiling mono by hand, e.g. ./autogen.sh && make. I'm using
gcc-2.95.3.
+
+------- Additional Comments From gkodinov@openlinksw.co.uk 2004-03-31 08:01 -------
+Sorry : 'solaris pb' means solaris problem :-)
+I use the current CVS (as mono-build.sh does cvs checkout each time
+it's run).
+gcc -v says : 3.0 (the same version I'm using on my Linux).
+Note that I'm using whatever versions of the pkg-config & glibc the
+mono-build.sh is programmed to use. So it may worth trying the
+mono-build.sh script to reproduce the problem.
+Also : the following diff fixes the problem :
+Index: Int64.cs
+===================================================================
+RCS file: /mono/mcs/class/corlib/System/Int64.cs,v
+retrieving revision 1.30
+diff -B -b -u -r1.30 Int64.cs
+--- Int64.cs 15 Mar 2004 19:04:33 -0000 1.30
++++ Int64.cs 31 Mar 2004 14:07:55 -0000
+@@ -16,7 +16,7 @@
+ public struct Int64 : IComparable, IFormattable, IConvertible {
+
+ public const long MaxValue = 0x7fffffffffffffff;
+- public const long MinValue = -9223372036854775808;
++ public const long MinValue = (long)
+-9223372036854775808.00;
+
+ internal long m_value;
+