same fix appled to dmd2 frontend

This commit is contained in:
Tomas Lindquist Olsen
2009-01-10 14:37:48 +01:00
parent 6f3aff87df
commit f090cea4cb

View File

@@ -1890,7 +1890,7 @@ Expression *TypeArray::dotExp(Scope *sc, Expression *e, Identifier *ident)
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();