Bug 848 – typo in C sorting example

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-01-14T16:43:00Z
Last change time
2014-02-15T13:12:54Z
Assigned to
bugzilla
Creator
braddr

Comments

Comment #0 by braddr — 2007-01-14T16:43:36Z
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; }
Comment #1 by bugzilla — 2007-02-12T03:39:38Z
Fixed DMD 1.005