diff --git a/include/ucore/utils.h b/include/ucore/utils.h index 4a3e199..44511ff 100644 --- a/include/ucore/utils.h +++ b/include/ucore/utils.h @@ -103,7 +103,7 @@ const typeof( ((const type *)0)->member ) *__mptr = (ptr); \ * @param y denominator * @return x rounded up to nearest multiple of y */ -#define UC_ROUND_UP(x, y) (UC_DIV_ROUND_UP(x, y) * (y)) +#define UC_ROUND_UP(x, y) (UC_DIV_ROUND_UP((x), (y)) * (y)) /** * Round x down to nearest multiple of y