include: wrap EMASKSIZE in parentheses
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 16 Aug 2013 01:05:49 +0000 (11:05 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 30 Aug 2013 04:26:55 +0000 (14:26 +1000)
Otherwise things like EMASKSIZE * foo will yield interesting results.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
include/inputstr.h

index 2da72c1..dc36c5d 100644 (file)
@@ -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