mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user