changeset 105232:e6976b3d93d5

* menu.c (find_and_return_menu_selection) [HAVE_NS]: Remove double-casting in client_data comparison.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Sun, 27 Sep 2009 16:21:47 +0000
parents 09ba0008e18b
children 0bf57cf45472
files src/ChangeLog src/menu.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Sep 27 16:11:10 2009 +0000
+++ b/src/ChangeLog	Sun Sep 27 16:21:47 2009 +0000
@@ -13,6 +13,9 @@
 	(ns_set_name_as_filename, x-create-frame, ns-get-resource)
 	(ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
 
+	* menu.c (find_and_return_menu_selection) [HAVE_NS]: Remove
+	double-casting in client_data comparison.
+
 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
 	* keyboard.c (make_lispy_event): Remember last wheel direction.
--- a/src/menu.c	Sun Sep 27 16:11:10 2009 +0000
+++ b/src/menu.c	Sun Sep 27 16:21:47 2009 +0000
@@ -1005,7 +1005,7 @@
         {
           entry
             = XVECTOR (menu_items)->contents[i + MENU_ITEMS_ITEM_VALUE];
-          if ((int) (EMACS_INT)client_data ==  (int)(&XVECTOR (menu_items)->contents[i]))
+          if ((EMACS_INT)client_data ==  (EMACS_INT)(&XVECTOR (menu_items)->contents[i]))
             {
               if (keymaps != 0)
                 {
@@ -1025,7 +1025,7 @@
     }
   return Qnil;
 }
-#endif
+#endif  /* HAVE_NS */
 
 void
 syms_of_menu ()