digitalmars.D.bugs - [Issue 7367] New: wrong char comparison result
- d-bugmail puremagic.com (26/26) Jan 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7367
- d-bugmail puremagic.com (8/8) Jan 25 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7367
- d-bugmail puremagic.com (8/8) Jan 25 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7367
- d-bugmail puremagic.com (10/10) Jan 25 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7367
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
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: -------
Jan 24 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7367 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: -------
Jan 25 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7367 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: -------
Jan 25 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: -------
Jan 25 2012









d-bugmail puremagic.com 