[PATCH 1/4] include: wrap EMASKSIZE in parentheses
Peter Hutterer
peter.hutterer at who-t.net
Mon Aug 26 18:00:12 PDT 2013
Otherwise things like EMASKSIZE * foo will yield interesting results.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
include/inputstr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/inputstr.h b/include/inputstr.h
index 2da72c1..dc36c5d 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -65,7 +65,7 @@ extern _X_EXPORT int CountBits(const uint8_t * mask, int len);
#define SameClient(obj,client) \
(CLIENT_BITS((obj)->resource) == (client)->clientAsMask)
-#define EMASKSIZE MAXDEVICES + 2
+#define EMASKSIZE (MAXDEVICES + 2)
/* This is the last XI2 event supported by the server. If you add
* events to the protocol, the server will not support these events until
--
1.8.2.1
More information about the xorg-devel
mailing list