[Mono-bugs] [Bug 40708][Nor] Changed - wrong code for double d = -0x80000001;
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 9 Apr 2003 16:51:58 -0400 (EDT)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=40708
--- shadow/40708 Thu Apr 3 04:11:09 2003
+++ shadow/40708.tmp.343 Wed Apr 9 16:51:57 2003
@@ -1,14 +1,14 @@
Bug#: 40708
Product: Mono/MCS
Version: unspecified
OS: other
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: dietmar@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -18,6 +18,9 @@
double d = -0x80000001;
Console.WriteLine (d);
prints 2147483649 when compiled with mcs, but -2147483649 when compiled
with csc. The csc result is the correct one.
+
+------- Additional Comments From miguel@ximian.com 2003-04-09 16:51 -------
+I was missing a minus sign when constant folding long constants.