diff options
author | Modestas Vainius <modestas@vainius.eu> | 2010-09-02 10:51:13 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:09 -0300 |
commit | 396b71f4ddcbcdd7772bb9c02be8df642b7a1be2 (patch) | |
tree | 644a225998369b11f85288c2ea30d8a3028079ee /parser/list.h | |
parent | 2d170a0b8b1519befc4cdad57a0a46ccf8d16e0a (diff) |
Fixes various memory alignment issues which cause generator to crash on alignment-sensitive architectures.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'parser/list.h')
-rw-r--r-- | parser/list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/list.h b/parser/list.h index 64aef45..fe0e627 100644 --- a/parser/list.h +++ b/parser/list.h @@ -35,7 +35,7 @@ struct ListNode { mutable const ListNode<Tp> *next; static ListNode *create(const Tp &element, pool *p) { - ListNode<Tp> *node = new(p->allocate(sizeof(ListNode))) ListNode(); + ListNode<Tp> *node = new(p->allocate(sizeof(ListNode), strideof(ListNode))) ListNode(); node->element = element; node->index = 0; node->next = node; |