diff dmd2/mtype.c @ 771:bfabbac8e705

Fixed 64bit problem with aaValues runtime calls (assumed 32bits)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 16 Nov 2008 20:42:45 +0100
parents 9a9f403ab399
children 340acf1535d0
line wrap: on
line diff
--- a/dmd2/mtype.c	Fri Nov 14 16:26:12 2008 +0100
+++ b/dmd2/mtype.c	Sun Nov 16 20:42:45 2008 +0100
@@ -2736,7 +2736,7 @@
 	arguments = new Expressions();
 	arguments->push(e);
 	size_t keysize = index->size(e->loc);
-	keysize = (keysize + 4 - 1) & ~(4 - 1);
+	keysize = (keysize + PTRSIZE - 1) & ~(PTRSIZE - 1);
 	arguments->push(new IntegerExp(0, keysize, Type::tsize_t));
 	arguments->push(new IntegerExp(0, next->size(e->loc), Type::tsize_t));
 	e = new CallExp(e->loc, ec, arguments);