Thread overview
[Issue 7367] New: wrong char comparison result
Jan 25, 2012
timon.gehr@gmx.ch
Jan 26, 2012
Walter Bright
January 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7367

           Summary: wrong char comparison result
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2012-01-24 20:07:07 PST ---
With DMD 2.058head the following code asserts during runtime:
void main(){
    char a = '\x00';
    char b = '\xFF';
    int c = b;
    assert(a < c);          // ok
    assert(a < b);          // fail
    assert(a < cast(int)b); // fail
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7367



--- Comment #1 from github-bugzilla@puremagic.com 2012-01-25 17:08:11 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3cc9b41641964c415209296d074146346331209a fix Issue 7367 - wrong char comparison result

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7367



--- Comment #2 from github-bugzilla@puremagic.com 2012-01-25 17:08:28 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/db4de5151064d13717185d01320fc495d73f71de fix Issue 7367 - wrong char comparison result

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7367


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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