From 5ec61509daa3055695a9b7dce0299ab4e5852194 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 11 Nov 2005 21:13:14 +0000 Subject: [PATCH] sequence size realign on arch size git-svn-id: http://ltt.polymtl.ca/svn@1328 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/gentest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/genevent-new/gentest.c b/genevent-new/gentest.c index 1dc4503d..b2678dab 100644 --- a/genevent-new/gentest.c +++ b/genevent-new/gentest.c @@ -169,6 +169,10 @@ static inline size_t lttng_get_size_sequence_mystruct_mysequence( locsize = sizeof(double); size += ltt_align(size, locsize) + (obj->len * locsize); + /* Realign on arch size */ + locsize = sizeof(void *); + size += ltt_align(size, locsize); + return size; } -- 2.34.1