From 8c6ad492bee7eeec2bc667ce983c47f57fa45104 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 28 Dec 2007 13:54:53 +0100 Subject: [PATCH] ROUND_UP: Add missing parentheses(). --- para.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) -- 2.39.5