sizeof
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 12 Nov 2005 21:25:30 +0000 (21:25 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 12 Nov 2005 21:25:30 +0000 (21:25 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1330 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/gentest.c

index f1dc3ec44bfb9d2419f32c52d3f61ac963a8f64d..efa9f9b738fc98b07a58b18382c937db0bfa8b05 100644 (file)
@@ -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);
 }
 
 
This page took 0.031379 seconds and 4 git commands to generate.