summaryrefslogtreecommitdiffstats
path: root/generic/tkPointer.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-15 14:33:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-15 14:33:41 (GMT)
commit451fa4203bff3f5e6a0ab5028f900823174b4c83 (patch)
tree86aaf80423a4c867a1ca9a19058c0f0754e5bb21 /generic/tkPointer.c
parentbcf907766a3ebba66c8c97c3bc5ace25885414dc (diff)
downloadtk-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.c5
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;