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:
parent
6258bb1d6b
commit
33fcaaaea5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user