From ae9eea8c51321036b3e106df6a86eeba04ced709 Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 12 Nov 2005 21:25:30 +0000 Subject: [PATCH] sizeof git-svn-id: http://ltt.polymtl.ca/svn@1330 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/gentest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genevent-new/gentest.c b/genevent-new/gentest.c index f1dc3ec4..efa9f9b7 100644 --- a/genevent-new/gentest.c +++ b/genevent-new/gentest.c @@ -112,9 +112,9 @@ static inline size_t lttng_get_size_array_mystruct_myarray( BUG_ON(ltt_align(size, locsize) != 0); size += LTTNG_ARRAY_SIZE_mystruct_myarray * locsize; - BUG_ON(size != LTTNG_ARRAY_SIZE_mystruct_myarray * sizeof(uint64_t)); + BUG_ON(sizeof(lttng_array_mystruct_myarray) != size); - return size; + return sizeof(lttng_array_mystruct_myarray); } static inline size_t lttng_get_alignment_array_mystruct_myarray( @@ -260,7 +260,7 @@ static inline size_t lttng_get_size_mystruct_myunion( BUG_ON(size != sizeof(union lttng_mystruct_myunion)); - return size; + return sizeof(union lttng_mystruct_myunion); } -- 2.34.1