diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-13 09:11:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-13 09:11:58 (GMT) |
commit | 162b7b3ca96237392063619cd366db41eb0280da (patch) | |
tree | 433e4cac9d96aa5e7914670842f500ee73d84901 | |
parent | bef7988898bd03e82851459cd2b320a1ceb7c4ef (diff) | |
download | tk-162b7b3ca96237392063619cd366db41eb0280da.zip tk-162b7b3ca96237392063619cd366db41eb0280da.tar.gz tk-162b7b3ca96237392063619cd366db41eb0280da.tar.bz2 |
A few more places where "unsigned long" should have been used.
-rw-r--r-- | generic/tkCanvas.c | 2 | ||||
-rw-r--r-- | generic/tkEvent.c | 2 | ||||
-rw-r--r-- | generic/tkTextTag.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 5b4d19b..92a7706 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -4843,7 +4843,7 @@ PickCurrentItem( * ButtonRelease, or MotionNotify. */ { double coords[2]; - unsigned int buttonDown; + unsigned long buttonDown; Tk_Item *prevItemPtr; #ifndef USE_OLD_TAG_SEARCH SearchUids *searchUids = GetStaticUids(); diff --git a/generic/tkEvent.c b/generic/tkEvent.c index f5ef1f8..56b32af 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -536,7 +536,7 @@ RefreshKeyboardMappingIfNeeded( *---------------------------------------------------------------------- */ -static const int buttonMasks[] = { +static const unsigned long buttonMasks[] = { 0, Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask }; diff --git a/generic/tkTextTag.c b/generic/tkTextTag.c index 6fa115d..0d223fe 100644 --- a/generic/tkTextTag.c +++ b/generic/tkTextTag.c @@ -1491,7 +1491,7 @@ TkTextBindProc( unsigned int oldState; oldState = eventPtr->xbutton.state; - eventPtr->xbutton.state &= ~ALL_BUTTONS; + eventPtr->xbutton.state &= ~(unsigned long)ALL_BUTTONS; if (!(textPtr->flags & DESTROYED)) { TkTextPickCurrent(textPtr, eventPtr); } |