Fixed 64bit problem with aaValues runtime calls (assumed 32bits)

This commit is contained in:
Tomas Lindquist Olsen
2008-11-16 20:42:45 +01:00
parent 1228595e7e
commit 41d9e79780
2 changed files with 2 additions and 2 deletions

View File

@@ -2419,7 +2419,7 @@ Expression *TypeAArray::dotExp(Scope *sc, Expression *e, Identifier *ident)
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);

View File

@@ -2736,7 +2736,7 @@ Expression *TypeAArray::dotExp(Scope *sc, Expression *e, Identifier *ident)
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);