aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/param.h4
1 files changed, 2 insertions, 2 deletions
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 <asm/page.h>
/* 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