sequence size realign on arch size
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 11 Nov 2005 21:13:14 +0000 (21:13 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 11 Nov 2005 21:13:14 +0000 (21:13 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1328 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/gentest.c

index 1dc4503d6e0ad8f70f2864c26908cb97466cc54e..b2678dab8bc5f0af0745a44e63d9622d1e49ff1c 100644 (file)
@@ -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;
 }
 
This page took 0.025804 seconds and 4 git commands to generate.