diff dmd2/mtype.c @ 882:eb936607f071

same fix appled to dmd2 frontend
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sat, 10 Jan 2009 14:37:48 +0100
parents 356e65836fb5
children 75c53f8f67a4
line wrap: on
line diff
--- a/dmd2/mtype.c	Sat Jan 10 14:35:48 2009 +0100
+++ b/dmd2/mtype.c	Sat Jan 10 14:37:48 2009 +0100
@@ -1890,7 +1890,7 @@
     arguments->push(e);
 
 	if (!dup)
-	    arguments->push(new IntegerExp(0, size, Type::tint32));
+	    arguments->push(new IntegerExp(0, size, Type::tsize_t));
 	e = new CallExp(e->loc, ec, arguments);
 	if (ident == Id::idup)
 	{   Type *einv = next->invariantOf();