diff dmd/func.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 330f999ade44
children 6c09179ebba0
line wrap: on
line diff
--- a/dmd/func.c	Sat Jan 17 17:52:09 2009 +0100
+++ b/dmd/func.c	Sun Jan 18 13:10:19 2009 +0100
@@ -2818,13 +2818,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);