mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fixed 32bit assumption in statement.c when calling aaApply(2).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user