diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-07-15 14:33:41 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-07-15 14:33:41 (GMT) |
commit | 451fa4203bff3f5e6a0ab5028f900823174b4c83 (patch) | |
tree | 86aaf80423a4c867a1ca9a19058c0f0754e5bb21 /generic/tkPointer.c | |
parent | bcf907766a3ebba66c8c97c3bc5ace25885414dc (diff) | |
download | tk-451fa4203bff3f5e6a0ab5028f900823174b4c83.zip tk-451fa4203bff3f5e6a0ab5028f900823174b4c83.tar.gz tk-451fa4203bff3f5e6a0ab5028f900823174b4c83.tar.bz2 |
Code simplifications: Don't bother the typedefs 'EventMask' and 'ModMask' for 'unsigned long', since Tk cannot handle more than 32 bits anyway. Simply use 'unsigned' everywhere.
Diffstat (limited to 'generic/tkPointer.c')
-rw-r--r-- | generic/tkPointer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkPointer.c b/generic/tkPointer.c index 06359a9..c17367a 100644 --- a/generic/tkPointer.c +++ b/generic/tkPointer.c @@ -225,8 +225,9 @@ Tk_UpdatePointer( TkWindow *targetWinPtr; XPoint pos; XEvent event; - int changes = (state ^ tsdPtr->lastState) & ALL_BUTTONS; - int type, b, mask; + unsigned changes = (state ^ tsdPtr->lastState) & ALL_BUTTONS; + int type, b; + unsigned mask; pos.x = x; pos.y = y; |