diff --git a/include/buf0buf.h b/include/buf0buf.h
index 1e1325b915079099640c6ebb78548619829107cf..406e6e9a14a65d2fe86458dd3ddd616efb61ea16 100644
--- a/include/buf0buf.h
+++ b/include/buf0buf.h
@@ -796,7 +796,7 @@ buf_block_get_frame(
 	const buf_block_t*	block)	/* in: pointer to the control block */
 	__attribute__((pure));
 #else /* UNIV_DEBUG */
-# define buf_block_get_frame(block) block->frame
+# define buf_block_get_frame(block) (block)->frame
 #endif /* UNIV_DEBUG */
 /*************************************************************************
 Gets the space id of a block. */