[Mono-bugs] [Bug 60056][Cri] Changed - BIGMUL does not handle signs correctly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Jun 2004 00:11:31 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=60056
--- shadow/60056 2004-06-11 16:12:06.000000000 -0400
+++ shadow/60056.tmp.7252 2004-06-12 00:11:31.000000000 -0400
@@ -2,22 +2,22 @@
Product: Mono: Runtime
Version: unspecified
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Critical
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: sebastien@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: long * -int gives bad results (big positive integer)
+Summary: BIGMUL does not handle signs correctly
Description of Problem:
Multiplying a long with a negative integer results in a big positive
integer. There are no (visible) overflow involved.
@@ -49,6 +49,21 @@
How often does this happen?
Always
Additional Information:
The same binary gives the right result when executed by the MS runtime.
+
+------- Additional Comments From bmaurer@users.sf.net 2004-06-12 00:11 -------
+Simpler:
+
+class T {
+ static void Main () {
+ const long a = 1;
+ int b = -59;
+
+ System.Console.WriteLine (a * b);
+ }
+}
+Gives:
+4294967237
+