X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/7fd47d5ce2020a22f8db9776e8d1f47891b966dc..d01a78266d12561b46777a2156914d12d8099c4f:/src/xmenu.c diff --git a/src/xmenu.c b/src/xmenu.c index 54f1fc666e..35ad42970c 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1139,9 +1139,9 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p) wv->help = Qnil; /* This prevents lwlib from assuming this menu item is really supposed to be empty. */ - /* The EMACS_INTPTR cast avoids a warning. + /* The intptr_t cast avoids a warning. This value just has to be different from small integers. */ - wv->call_data = (void *) (EMACS_INTPTR) (-1); + wv->call_data = (void *) (intptr_t) (-1); if (prev_wv) prev_wv->next = wv; @@ -1878,7 +1878,7 @@ dialog_selection_callback (GtkWidget *widget, gpointer client_data) { /* Treat the pointer as an integer. There's no problem as long as pointers have enough bits to hold small integers. */ - if ((EMACS_INTPTR) client_data != -1) + if ((intptr_t) client_data != -1) menu_item_selection = (Lisp_Object *) client_data; popup_activated_flag = 0;