Mercurial > projects > ldc
comparison dmd/expression.c @ 891:ea82e2077f9d
Change custom allocator new size argument to size_t instead of uint. See #175.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 18 Jan 2009 13:10:19 +0100 |
parents | 27a379f288bf |
children | 39cf8fa483fd |
comparison
equal
deleted
inserted
replaced
890:5a03f3f74615 | 891:ea82e2077f9d |
---|---|
3615 error("no constructor for %s", cd->toChars()); | 3615 error("no constructor for %s", cd->toChars()); |
3616 } | 3616 } |
3617 | 3617 |
3618 if (cd->aggNew) | 3618 if (cd->aggNew) |
3619 { | 3619 { |
3620 // Prepend the uint size argument to newargs[] | 3620 // Prepend the size_t size argument to newargs[] |
3621 Expression *e = new IntegerExp(loc, cd->size(loc), Type::tuns32); | 3621 Expression *e = new IntegerExp(loc, cd->size(loc), Type::tsize_t); |
3622 if (!newargs) | 3622 if (!newargs) |
3623 newargs = new Expressions(); | 3623 newargs = new Expressions(); |
3624 newargs->shift(e); | 3624 newargs->shift(e); |
3625 | 3625 |
3626 f = cd->aggNew->overloadResolve(loc, newargs); | 3626 f = cd->aggNew->overloadResolve(loc, newargs); |