www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9548] New: BigInt: Wrong comparison result: BigInt("-1") > long.min

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9548

           Summary: BigInt: Wrong comparison result: BigInt("-1") >
                    long.min
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap mailinator.com> 2013-02-19
20:54:40 PST ---
This fails:

assert(BigInt("-1") > long.min);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 19 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9548



--- Comment #1 from Nick Sabalausky <cbkbbejeap mailinator.com> 2013-02-19
20:55:56 PST ---
Workaround:

assert(BigInt("-1") > BigInt(long.min));  // Works

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 19 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9548


safety0ff.bugz gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz gmail.com


--- Comment #2 from safety0ff.bugz gmail.com 2013-03-31 04:09:40 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1231

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 31 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9548



--- Comment #3 from github-bugzilla puremagic.com 2013-05-25 23:36:36 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/202d182152575db1d744ed5ee89b05a39e5a807b
Fix std.BigInt bug #9548 plus other new discovered bugs.

https://github.com/D-Programming-Language/phobos/commit/e54288b6b78a025ecaf19730e613bfa0d58b746d
Merge pull request #1231 from Safety0ff/master

Fix std.BigInt bug #9548 plus other new discovered bugs.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9548


safety0ff.bugz gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 25 2013