summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-13 14:19:54 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-13 14:19:54 +1000
commit7528a6b88eb32098af4369a8bd9d70a808fa6f1c (patch)
tree7c070cba51914690c3e858199aeef4ff491587f4 /include
parentf0de5e3990b70df9899b7dd17d7ee6ff7c768183 (diff)
parent898d97672907a8074031d0d1038cd44bb5caf40d (diff)
Merge branch 'for-whot' of git://people.freedesktop.org/~alanc/xserver into for-keith
Diffstat (limited to 'include')
-rw-r--r--include/inputstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/inputstr.h b/include/inputstr.h
index 754a3f850..5aae1b512 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -57,7 +57,7 @@ SOFTWARE.
#include "geext.h"
#include "privates.h"
-#define BitIsOn(ptr, bit) (!!(((BYTE *) (ptr))[(bit)>>3] & (1 << ((bit) & 7))))
+#define BitIsOn(ptr, bit) (!!(((const BYTE *) (ptr))[(bit)>>3] & (1 << ((bit) & 7))))
#define SetBit(ptr, bit) (((BYTE *) (ptr))[(bit)>>3] |= (1 << ((bit) & 7)))
#define ClearBit(ptr, bit) (((BYTE *)(ptr))[(bit)>>3] &= ~(1 << ((bit) & 7)))
extern _X_EXPORT int CountBits(const uint8_t *mask, int len);