Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
881:1c2faa8325d1 | 882:eb936607f071 |
---|---|
1888 e->type = Type::tvoid->arrayOf(); | 1888 e->type = Type::tvoid->arrayOf(); |
1889 } | 1889 } |
1890 arguments->push(e); | 1890 arguments->push(e); |
1891 | 1891 |
1892 if (!dup) | 1892 if (!dup) |
1893 arguments->push(new IntegerExp(0, size, Type::tint32)); | 1893 arguments->push(new IntegerExp(0, size, Type::tsize_t)); |
1894 e = new CallExp(e->loc, ec, arguments); | 1894 e = new CallExp(e->loc, ec, arguments); |
1895 if (ident == Id::idup) | 1895 if (ident == Id::idup) |
1896 { Type *einv = next->invariantOf(); | 1896 { Type *einv = next->invariantOf(); |
1897 if (next->implicitConvTo(einv) < MATCHconst) | 1897 if (next->implicitConvTo(einv) < MATCHconst) |
1898 error(e->loc, "cannot implicitly convert element type %s to invariant", next->toChars()); | 1898 error(e->loc, "cannot implicitly convert element type %s to invariant", next->toChars()); |