Mercurial > projects > ldc
changeset 892:063ba84a965f
Also apply custom allocator size_t change to DMD2 frontend.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 18 Jan 2009 13:18:31 +0100 |
parents | ea82e2077f9d |
children | e74e2e53ba3b |
files | dmd2/expression.c dmd2/func.c |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd2/expression.c Sun Jan 18 13:10:19 2009 +0100 +++ b/dmd2/expression.c Sun Jan 18 13:18:31 2009 +0100 @@ -3537,8 +3537,8 @@ if (cd->aggNew) { - // Prepend the uint size argument to newargs[] - Expression *e = new IntegerExp(loc, cd->size(loc), Type::tuns32); + // Prepend the size_t size argument to newargs[] + Expression *e = new IntegerExp(loc, cd->size(loc), Type::tsize_t); if (!newargs) newargs = new Expressions(); newargs->shift(e);
--- a/dmd2/func.c Sun Jan 18 13:10:19 2009 +0100 +++ b/dmd2/func.c Sun Jan 18 13:18:31 2009 +0100 @@ -2974,13 +2974,13 @@ TypeFunction *tf = (TypeFunction *)type; if (Argument::dim(tf->parameters) < 1) { - error("at least one argument of type uint expected"); + error("at least one argument of type size_t expected"); } else { Argument *a = Argument::getNth(tf->parameters, 0); - if (!a->type->equals(Type::tuns32)) - error("first argument must be type uint, not %s", a->type->toChars()); + if (!a->type->equals(Type::tsize_t)) + error("first argument must be type size_t, not %s", a->type->toChars()); } FuncDeclaration::semantic(sc);