summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-01-14 09:46:14 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-01-14 09:46:14 -0800
commitc50cf2eac4b18e38bef5b6e58827cc2bce1e98f4 (patch)
tree56685b68573608bf284b55d0996cc471fda34366 /src/keymap.c
parent57dd9e68862eeb452388b07c855a8112c3a7b22f (diff)
downloademacs-c50cf2eac4b18e38bef5b6e58827cc2bce1e98f4.tar.gz
Avoid needless casts with XSAVE_POINTER.
* alloc.c (mark_object) [GC_MARK_STACK]: * dired.c (directory_files_internal_unwind): * fileio.c (do_auto_save_unwind): * gtkutil.c (pop_down_dialog): * keymap.c (map_keymap_char_table_item): * lread.c (load_unwind): * nsmenu.m (pop_down_menu): * print.c (print_object) [GC_MARK_STACK]: * xfns.c (clean_up_file_dialog): * xmenu.c (cleanup_widget_value_tree): Omit casts between XSAVE_POINTER and a pointer type.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 7b5aa45ebf3..82c9e980221 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -565,8 +565,7 @@ map_keymap_char_table_item (Lisp_Object args, Lisp_Object key, Lisp_Object val)
{
if (!NILP (val))
{
- map_keymap_function_t fun
- = (map_keymap_function_t) XSAVE_POINTER (XCAR (args));
+ map_keymap_function_t fun = XSAVE_POINTER (XCAR (args));
args = XCDR (args);
/* If the key is a range, make a copy since map_char_table modifies
it in place. */