diff dmd/TypeAArray.d @ 84:be2ab491772e

Expressions -> Vector!Expression
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:12:19 +0100
parents ef02e2e203c2
children acd69f84627e
line wrap: on
line diff
--- a/dmd/TypeAArray.d	Mon Aug 30 18:42:04 2010 +0400
+++ b/dmd/TypeAArray.d	Mon Aug 30 16:12:19 2010 +0100
@@ -210,7 +210,7 @@
 			fd = FuncDeclaration.genCfunc(Type.tsize_t, Id.aaLen);
 			ec = new VarExp(Loc(0), fd);
 			arguments = new Expressions();
-			arguments.push(cast(void*)e);
+			arguments.push(e);
 			e = new CallExp(e.loc, ec, arguments);
 			e.type = (cast(TypeFunction)fd.type).next;
 		}
@@ -225,8 +225,8 @@
 			fd = FuncDeclaration.genCfunc(Type.tindex, Id.aaKeys);
 			ec = new VarExp(Loc(0), fd);
 			arguments = new Expressions();
-			arguments.push(cast(void*)e);
-			arguments.push(cast(void*)new IntegerExp(Loc(0), size, Type.tsize_t));
+			arguments.push(e);
+			arguments.push(new IntegerExp(Loc(0), size, Type.tsize_t));
 			e = new CallExp(e.loc, ec, arguments);
 			e.type = index.arrayOf();
 		}
@@ -239,11 +239,11 @@
 			fd = FuncDeclaration.genCfunc(Type.tindex, Id.aaValues);
 			ec = new VarExp(Loc(0), fd);
 			arguments = new Expressions();
-			arguments.push(cast(void*)e);
+			arguments.push(e);
 			size_t keysize = cast(size_t)index.size(e.loc);
 			keysize = (keysize + PTRSIZE - 1) & ~(PTRSIZE - 1);
-			arguments.push(cast(void*)new IntegerExp(Loc(0), keysize, Type.tsize_t));
-			arguments.push(cast(void*)new IntegerExp(Loc(0), next.size(e.loc), Type.tsize_t));
+			arguments.push(new IntegerExp(Loc(0), keysize, Type.tsize_t));
+			arguments.push(new IntegerExp(Loc(0), next.size(e.loc), Type.tsize_t));
 			e = new CallExp(e.loc, ec, arguments);
 			e.type = next.arrayOf();
 		}
@@ -256,8 +256,8 @@
 			fd = FuncDeclaration.genCfunc(Type.tint64, Id.aaRehash);
 			ec = new VarExp(Loc(0), fd);
 			arguments = new Expressions();
-			arguments.push(cast(void*)e.addressOf(sc));
-			arguments.push(cast(void*)index.getInternalTypeInfo(sc));
+			arguments.push(e.addressOf(sc));
+			arguments.push(index.getInternalTypeInfo(sc));
 			e = new CallExp(e.loc, ec, arguments);
 			e.type = this;
 		}