[Mono-bugs] [Bug 24658] New - ILGenerator.Emit (Opcode, Float) encodes incorrectly floating point value.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
13 May 2002 23:46:20 -0000


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=24658

--- shadow/24658	Mon May 13 19:46:20 2002
+++ shadow/24658.tmp.6938	Mon May 13 19:46:20 2002
@@ -0,0 +1,36 @@
+Bug#: 24658
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ILGenerator.Emit (Opcode, Float) encodes incorrectly floating point value.
+
+Mark tracked this down:
+
+public class ReflectionTest {
+	static float tpi = 6.28318530717958647692528676655900577f
+;
+
+    public static void Main() {
+	return;
+    }
+}
+
+MCS with Mono runtime encodes that as:
+
+( A2 EA 01 DE )
+
+While MCS with .NET encodes that as:
+
+(DB 0F C9 40)