summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2020-10-31 08:56:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2020-11-18 14:27:59 -0800
commit7d70e302218e2ec8518548ddcdc02d828e7889af (patch)
tree8ab7ee16abc6878a358c2285e34cad9736850c5b
parenta3c0b5dbd6b12ae64bc78b11795647a7f6df0c7a (diff)
downloadxorg-lib-libX11-7d70e302218e2ec8518548ddcdc02d828e7889af.tar.gz
XimProto.h: wrap XIM_HEADER_SIZE definition in parens
Resolves parfait warning of potential macro misinterpretation if expanded in the midst of other arithmetic operations with higher precedence. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/xlibi18n/XimProto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xlibi18n/XimProto.h b/src/xlibi18n/XimProto.h
index 6b0096dd..cc7eda31 100644
--- a/src/xlibi18n/XimProto.h
+++ b/src/xlibi18n/XimProto.h
@@ -188,9 +188,9 @@ PERFORMANCE OF THIS SOFTWARE.
* request packet header size
*/
#define XIM_HEADER_SIZE \
- sizeof(CARD8) /* sizeof mejor-opcode */ \
+ ( sizeof(CARD8) /* sizeof major-opcode */ \
+ sizeof(CARD8) /* sizeof minor-opcode */ \
- + sizeof(INT16) /* sizeof length */
+ + sizeof(INT16) ) /* sizeof length */
/*
* Client Message data size