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