diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-21 13:17:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-21 13:17:58 (GMT) |
commit | b0cb20ac4634f999816139408519cad3f65e475a (patch) | |
tree | 542ad0a287b458a67d1b4e43271532254191d6b7 /generic/tkCanvas.c | |
parent | 42a4fa0070a3233c88471707a85217caa0257c6b (diff) | |
download | tk-b0cb20ac4634f999816139408519cad3f65e475a.zip tk-b0cb20ac4634f999816139408519cad3f65e475a.tar.gz tk-b0cb20ac4634f999816139408519cad3f65e475a.tar.bz2 |
Fix 2 places where using "unsigned long" is overkill on 64-bit platforms
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 50a88b4..c63520b 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -977,7 +977,7 @@ CanvasWidgetCmd( if (objc == 5) { int append = 0; - unsigned long mask; + unsigned int mask; const char *argv4 = Tcl_GetString(objv[4]); if (argv4[0] == 0) { @@ -1027,7 +1027,7 @@ CanvasWidgetCmd( result = TCL_ERROR; goto done; } - if (mask & ~(unsigned long)(ButtonMotionMask|Button1MotionMask + if (mask & ~(ButtonMotionMask|Button1MotionMask |Button2MotionMask|Button3MotionMask|Button4MotionMask |Button5MotionMask|ButtonPressMask|ButtonReleaseMask |EnterWindowMask|LeaveWindowMask|KeyPressMask @@ -4856,7 +4856,7 @@ PickCurrentItem( * ButtonRelease, or MotionNotify. */ { double coords[2]; - unsigned long buttonDown; + unsigned int buttonDown; Tk_Item *prevItemPtr; #ifndef USE_OLD_TAG_SEARCH SearchUids *searchUids = GetStaticUids(); |