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).
This commit is contained in:
Peter Hutterer 2009-05-18 16:05:35 +10:00
parent 6258bb1d6b
commit 33fcaaaea5

View File

@ -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);