[Mono-bugs] [Bug 75708][Maj] Changed - Numerical shifting of large integers doesn't work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 19 09:52:41 EDT 2005


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 kornelpal at hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75708

--- shadow/75708	2005-08-19 09:36:19.000000000 -0400
+++ shadow/75708.tmp.10999	2005-08-19 09:52:41.000000000 -0400
@@ -173,6 +173,35 @@
 Looks like Microsoft is not implementing the official standard - how
 typical. Looks like I need to report that fact to Microsoft :-(
 
 Sorry about my implicit assumption that the Microsoft implementation
 is correct instead of yours - maybe I should go check what SSCLI does...
 
+
+------- Additional Comments From kornelpal at hotmail.com  2005-08-19 09:52 -------
+I used Mono HEAD and .NET Framework 1.1 SP1. Your test produces the 
+same result on Mono and MS.NET.
+
+I tried to reprodce that you described so I modified it to:
+s8 <<= 9;
+u8 <<= 9;
+s16 <<= 17;
+u16 <<= 17;
+s32 <<= 33;
+u32 <<= 33;
+s64 <<= 65;
+u64 <<= 65;
+
+I got the same result on Mono and MS.NET:
+s8: 0
+u8: 0
+s16: 0
+u16: 0
+s32: 2
+u32: 2
+s64: 2
+u64: 2
+
+This is the expected result according to the standard.
+
+Could you please attach a test case that causes wrong results either 
+on Mono or MS.NET?


More information about the mono-bugs mailing list