diff dmd/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 05e7657a7811
children cd7da2ba14d1
line wrap: on
line diff
--- a/dmd/mtype.c	Fri Nov 14 16:26:12 2008 +0100
+++ b/dmd/mtype.c	Sun Nov 16 20:42:45 2008 +0100
@@ -2419,7 +2419,7 @@
 	arguments = new Expressions();
 	arguments->push(e);
 	size_t keysize = key->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);