summaryrefslogtreecommitdiff
path: root/include/eventconvert.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-18 16:05:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-18 16:05:35 +1000
commit33fcaaaea5ea30be39156ecfdbcca891b47ab465 (patch)
treed6016036b8eff1dd46aae3517cbe8442d177f609 /include/eventconvert.h
parent6258bb1d6bb78ea4ba1d33470bc74e9b711b25f2 (diff)
Fix missing parentheses in FP1616 macro.
Missing parens led to interesting results if an expression instead of a constant was passed in (ProcXIQueryPointer for example).
Diffstat (limited to 'include/eventconvert.h')
-rw-r--r--include/eventconvert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/eventconvert.h b/include/eventconvert.h
index dc3fd736d..277a6c4b8 100644
--- a/include/eventconvert.h
+++ b/include/eventconvert.h
@@ -28,7 +28,7 @@
#include "input.h"
#include "events.h"
-#define FP1616(integral, frac) (integral * (1 << 16) + frac * (1 << 16))
+#define FP1616(integral, frac) ((integral) * (1 << 16) + (frac) * (1 << 16))
_X_INTERNAL int EventToCore(InternalEvent *event, xEvent *core);
_X_INTERNAL int EventToXI(InternalEvent *ev, xEvent **xi, int *count);