]> granicus.if.org Git - python/commitdiff
quashed another case of the 32-bit warning.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 8 Jan 2003 16:32:09 +0000 (16:32 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 8 Jan 2003 16:32:09 +0000 (16:32 +0000)
Lib/plat-mac/FrameWork.py

index 24acd414619eea72291f09c04dc25766a78d6a8f..5ebf9d182bd629ae0240313207b15fbad6db833d 100644 (file)
@@ -645,7 +645,7 @@ class PopupMenu(Menu):
                reply = self.menu.PopUpMenuSelect(x, y, default)
                if not reply:
                        return
-               id = (reply & 0xffff0000) >> 16
+               id = (reply >> 16) & 0xffff
                item = reply & 0xffff
                if not window:
                        wid = MyFrontWindow()