Also apply custom allocator size_t change to DMD2 frontend.

This commit is contained in:
Christian Kamm
2009-01-18 13:18:31 +01:00
parent 4e05607355
commit 2814c2ab44
2 changed files with 5 additions and 5 deletions

View File

@@ -2974,13 +2974,13 @@ void NewDeclaration::semantic(Scope *sc)
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);