Mercurial > projects > ldc
comparison dmd/statement.c @ 765:f08e0ff8d28c
Fixed 32bit assumption in statement.c when calling aaApply(2).
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 07:41:56 +0100 |
parents | 7261ff0f95ff |
children | 661384d6a936 |
comparison
equal
deleted
inserted
replaced
764:8e7d4ddab66d | 765:f08e0ff8d28c |
---|---|
1636 } | 1636 } |
1637 ec = new VarExp(0, fdapply); | 1637 ec = new VarExp(0, fdapply); |
1638 Expressions *exps = new Expressions(); | 1638 Expressions *exps = new Expressions(); |
1639 exps->push(aggr); | 1639 exps->push(aggr); |
1640 size_t keysize = taa->key->size(); | 1640 size_t keysize = taa->key->size(); |
1641 keysize = (keysize + 3) & ~3; | 1641 keysize = (keysize + (PTRSIZE-1)) & ~(PTRSIZE-1); |
1642 exps->push(new IntegerExp(0, keysize, Type::tsize_t)); | 1642 exps->push(new IntegerExp(0, keysize, Type::tsize_t)); |
1643 | 1643 |
1644 // LDC paint delegate argument to the type runtime expects | 1644 // LDC paint delegate argument to the type runtime expects |
1645 if (!fldeTy->equals(flde->type)) | 1645 if (!fldeTy->equals(flde->type)) |
1646 { | 1646 { |