Mercurial > emacs
comparison src/menu.c @ 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 | e038c1a8307c |
children | 68dd71358159 |
comparison
equal
deleted
inserted
replaced
105231:09ba0008e18b | 105232:e6976b3d93d5 |
---|---|
1003 i += 1; | 1003 i += 1; |
1004 else | 1004 else |
1005 { | 1005 { |
1006 entry | 1006 entry |
1007 = XVECTOR (menu_items)->contents[i + MENU_ITEMS_ITEM_VALUE]; | 1007 = XVECTOR (menu_items)->contents[i + MENU_ITEMS_ITEM_VALUE]; |
1008 if ((int) (EMACS_INT)client_data == (int)(&XVECTOR (menu_items)->contents[i])) | 1008 if ((EMACS_INT)client_data == (EMACS_INT)(&XVECTOR (menu_items)->contents[i])) |
1009 { | 1009 { |
1010 if (keymaps != 0) | 1010 if (keymaps != 0) |
1011 { | 1011 { |
1012 int j; | 1012 int j; |
1013 | 1013 |
1023 i += MENU_ITEMS_ITEM_LENGTH; | 1023 i += MENU_ITEMS_ITEM_LENGTH; |
1024 } | 1024 } |
1025 } | 1025 } |
1026 return Qnil; | 1026 return Qnil; |
1027 } | 1027 } |
1028 #endif | 1028 #endif /* HAVE_NS */ |
1029 | 1029 |
1030 void | 1030 void |
1031 syms_of_menu () | 1031 syms_of_menu () |
1032 { | 1032 { |
1033 staticpro (&menu_items); | 1033 staticpro (&menu_items); |