From: compudj Date: Sat, 12 Nov 2005 21:25:30 +0000 (+0000) Subject: sizeof X-Git-Tag: v0.12.20~2159 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ae9eea8c51321036b3e106df6a86eeba04ced709;p=lttv.git sizeof git-svn-id: http://ltt.polymtl.ca/svn@1330 04897980-b3bd-0310-b5e0-8ef037075253 --- 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); }