From 9f2d9587f04f39c8fc37b79d16a625aac46e2646 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 23 Aug 1995 00:31:13 +0000 Subject: [PATCH] additional parenthesis in macro to be safe --- src/ca/iocmsg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ca/iocmsg.h b/src/ca/iocmsg.h index fd5a94201..6e3f51408 100644 --- a/src/ca/iocmsg.h +++ b/src/ca/iocmsg.h @@ -113,15 +113,15 @@ typedef ca_uint32_t caResId; #define DONTREPLY 5 /* size of object in bytes rounded up to nearest oct word */ -#define OCT_ROUND(A) ((((unsigned long)A)+7)>>3) +#define OCT_ROUND(A) ((((unsigned long)(A))+7)>>3) #define OCT_SIZEOF(A) (OCT_ROUND(sizeof(A))) /* size of object in bytes rounded up to nearest long word */ -#define QUAD_ROUND(A) (((unsigned long)A)+3)>>2) +#define QUAD_ROUND(A) (((unsigned long)(A))+3)>>2) #define QUAD_SIZEOF(A) (QUAD_ROUND(sizeof(A))) /* size of object in bytes rounded up to nearest short word */ -#define BI_ROUND(A) ((((unsigned long)A)+1)>>1) +#define BI_ROUND(A) ((((unsigned long)(A))+1)>>1) #define BI_SIZEOF(A) (BI_ROUND(sizeof(A))) /*