Mercurial > projects > ldc
view lphobos/typeinfo1/ti_short.d @ 1612:081c48283153
Merge DMD r278: bugzilla 370 Compiler stack overflow on recursive...
bugzilla 370 Compiler stack overflow on recursive typeof in function
declaration.
---
dmd/expression.c | 1 +
dmd/mtype.c | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:21 -0300 |
parents | 2c3cd3596187 |
children |
line wrap: on
line source
// short module typeinfo1.ti_short; class TypeInfo_s : TypeInfo { char[] toString() { return "short"; } hash_t getHash(void *p) { return *cast(short *)p; } int equals(void *p1, void *p2) { return *cast(short *)p1 == *cast(short *)p2; } int compare(void *p1, void *p2) { return *cast(short *)p1 - *cast(short *)p2; } size_t tsize() { return short.sizeof; } void swap(void *p1, void *p2) { short t; t = *cast(short *)p1; *cast(short *)p1 = *cast(short *)p2; *cast(short *)p2 = t; } }