[Mono-bugs] [Bug 48865][Wis] New - mono interpreter fails >=, <= float comparisons
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Sep 2003 22:50:39 -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 mass@akuma.org.
http://bugzilla.ximian.com/show_bug.cgi?id=48865
--- shadow/48865 2003-09-24 22:50:38.000000000 -0400
+++ shadow/48865.tmp.8473 2003-09-24 22:50:38.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 48865
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mass@akuma.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mono interpreter fails >=, <= float comparisons
+
+Description of Problem:
+
+Mint returns true running the following test:
+
+using System;
+class T
+{
+ static void Main()
+ {
+ Console.WriteLine(compare(double.NaN, 1.0));
+ }
+
+ static bool compare(double a, double b)
+ {
+ return a>=b;
+ }
+}
+
+The cause is a typo in the clt.un opcode handler in interp.c (it also
+exists in cgt.un).