diff --git a/include/sys/param.h b/include/sys/param.h index 2c9fcd8e9..10bf96588 100644 --- a/include/sys/param.h +++ b/include/sys/param.h @@ -28,8 +28,8 @@ #include /* Pages to bytes and back */ -#define ptob(pages) (pages << PAGE_SHIFT) -#define btop(bytes) (bytes >> PAGE_SHIFT) +#define ptob(pages) ((pages) << PAGE_SHIFT) +#define btop(bytes) ((bytes) >> PAGE_SHIFT) #define MAXUID UINT32_MAX