Fixed 32bit assumption in statement.c when calling aaApply(2).

This commit is contained in:
Tomas Lindquist Olsen
2008-11-12 07:41:56 +01:00
parent 32f99e7091
commit 5d9854aaff
2 changed files with 2 additions and 2 deletions

View File

@@ -1638,7 +1638,7 @@ Statement *ForeachStatement::semantic(Scope *sc)
Expressions *exps = new Expressions();
exps->push(aggr);
size_t keysize = taa->key->size();
keysize = (keysize + 3) & ~3;
keysize = (keysize + (PTRSIZE-1)) & ~(PTRSIZE-1);
exps->push(new IntegerExp(0, keysize, Type::tsize_t));
// LDC paint delegate argument to the type runtime expects

View File

@@ -1652,7 +1652,7 @@ Statement *ForeachStatement::semantic(Scope *sc)
Expressions *exps = new Expressions();
exps->push(aggr);
size_t keysize = taa->index->size();
keysize = (keysize + 3) & ~3;
keysize = (keysize + (PTRSIZE-1)) & ~(PTRSIZE-1);
exps->push(new IntegerExp(0, keysize, Type::tsize_t));
// LDC paint delegate argument to the type runtime expects