X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=para.h;h=6a90e55bbc17a3256f4d17fef506150e4f300d8d;hp=0cb1538d2725fd79c7de01871bcb617bcd73c706;hb=8c6ad492bee7eeec2bc667ce983c47f57fa45104;hpb=50eb5f37e3da3036fb709cd7ab2825c8d827f42a diff --git a/para.h b/para.h index 0cb1538d..6a90e55b 100644 --- a/para.h +++ b/para.h @@ -213,7 +213,7 @@ 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]))