[Mono-bugs] [Bug 41095][Nor] New - mini has problem with 'checked' for byte type

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 10 Apr 2003 10:08:09 -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 ndrochak@gol.com.

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

--- shadow/41095	Thu Apr 10 10:08:09 2003
+++ shadow/41095.tmp.16386	Thu Apr 10 10:08:09 2003
@@ -0,0 +1,34 @@
+Bug#: 41095
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 8.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ndrochak@gol.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mini has problem with 'checked' for byte type
+
+in the program below, mini doesn't update 'val'. It stays at 0.
+
+using System;
+
+class C {
+
+	public static void Main () {
+		byte val = 0;
+		byte d = 2;
+		val = checked ((byte) (val * 10 + d));
+		Console.WriteLine (val);
+	}
+}
+
+
+mono didn't have this problem.