[Mono-bugs] [Bug 40708][Nor] New - wrong code for double d = -0x80000001;

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 3 Apr 2003 04:11:09 -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 dietmar@ximian.com.


--- shadow/40708	Thu Apr  3 04:11:09 2003
+++ shadow/40708.tmp.25755	Thu Apr  3 04:11:09 2003
@@ -0,0 +1,23 @@
+Bug#: 40708
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dietmar@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: wrong code for double d = -0x80000001;
+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.