Subject: An improvement on before

From: hypnotoad <[email-masked]>
Date: Wed, 27 Aug 2014 14:22:55 +0000

---
 macosx/tkMacOSXButton.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index bd5cedd..4e7904c 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -375,8 +375,9 @@ NSRect TkMacOSXGetButtonFrame(
 {
     MacButton *macButtonPtr = (MacButton *) butPtr;
     Tk_Window tkwin = butPtr->tkwin;
+    unsigned short tkwint=(unsigned int)tkwin;
     TkWindow *winPtr = (TkWindow *) tkwin;
-    if(tkwin==0xffffffff || tkwin==0xffffffff00000000) {
+    if(tkwint==0xffffffff || tkwint==0) {
 	return NSZeroRect;
     }
     if (tkwin) {
-- 
cgit v0.12