Minor fix.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Sep 2008 10:10:56 +0000 (12:10 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Sep 2008 10:10:56 +0000 (12:10 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
common/array.h

index 63e66cf..fe3dded 100644 (file)
 #define array_len(array) (array).len
 #define array_size(array) (array).size
 #define array_elt_len(array) sizeof(*(array).data)
-#define array_byte_len(array) (array).len * array_elt_len(array)
+#define array_byte_len(array) ((array).len * array_elt_len(array))
 
 #define array_lock(array)                                                      \
     ((array).locked                                                            \