X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=para.h;h=06eb8b30f617104051fb3260e5b17c261a04ec17;hb=2b3cc3af64d5574473c2f1ea9c32d7589abbb811;hp=fcc24746be9b18d5460292b42504898106131689;hpb=002731cd3938f3be6b71651e56c062af1adcdec0;p=paraslash.git 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]))