[Issue 848] New: typo in C sorting example
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 14 14:43:39 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=848
Summary: typo in C sorting example
Product: D
Version: 1.00
Platform: PC
URL: http://www.digitalmars.com/d/ctod.html
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: bugzilla at digitalmars.com
ReportedBy: braddr at puremagic.com
from http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/ctod, the C example has
a typo:
int compare(const void *p1, const void *p2)
{
type *t1 = (type *)p1;
type *t1 = (type *)p2; <--- should be t2 instead of t1
return *t1 - *t2;
}
--
More information about the Digitalmars-d-bugs
mailing list