From c5f13b0e204c9cc2b8e0969cbff239b286f771d0 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 11 Feb 2009 22:18:17 +0100 Subject: [PATCH] Fix the ROUND_UP macro. Doooh. --- para.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/para.h b/para.h index fcc24746..06eb8b30 100644 --- a/para.h +++ b/para.h @@ -230,7 +230,8 @@ static inline long int para_random(unsigned max) } /** Round up x to a multiple of y */ -#define ROUND_UP(x, y) (((x) + ((y) - 1) / (y)) * (y)) +#define ROUND_UP(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) + /** Get the size of an array */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -- 2.39.2