[Mono-bugs] [Bug 674120] New: BigInteger comparision operators failing

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 22 15:28:59 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=674120

https://bugzilla.novell.com/show_bug.cgi?id=674120#c0


           Summary: BigInteger comparision operators failing
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tristanz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20

The comparison operators >, >=, <, <= do not work as expected when comparing a
BigInteger to an Int32.

Reproducible: Always

Steps to Reproduce:
            var a =
System.Numerics.BigInteger.Parse("143098242404177361603877621312831893704");
            Console.WriteLine(a);
            if (a < System.Int32.MaxValue) {
                Console.WriteLine("Small enough");
            }
            if (a > System.Int32.MinValue) {
                Console.WriteLine("Big enough");
            }

Actual Results:  
Prints:
143098242404177361603877621312831893704
Small enough
Big enough

Expected Results:  
Prints:
143098242404177361603877621312831893704

This is the underlying bug behind:

http://ironpython.codeplex.com/workitem/28904

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list