From: Andre Noll Date: Fri, 28 Dec 2007 12:54:53 +0000 (+0100) Subject: ROUND_UP: Add missing parentheses(). X-Git-Tag: v0.3.0~26 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=8c6ad492bee7eeec2bc667ce983c47f57fa45104;p=paraslash.git ROUND_UP: Add missing parentheses(). --- 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]))