From: Andre Noll Date: Wed, 11 Feb 2009 21:18:17 +0000 (+0100) Subject: Fix the ROUND_UP macro. X-Git-Tag: v0.3.4~64 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;ds=sidebyside;h=c5f13b0e204c9cc2b8e0969cbff239b286f771d0;p=paraslash.git Fix the ROUND_UP macro. Doooh. --- 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]))