From 162b7b3ca96237392063619cd366db41eb0280da Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 13 Aug 2019 09:11:58 +0000 Subject: A few more places where "unsigned long" should have been used. --- generic/tkCanvas.c | 2 +- generic/tkEvent.c | 2 +- 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); } -- cgit v0.12