]> git.eshelyaron.com Git - emacs.git/commitdiff
[HAVE_DIALOGS] (mac_dialog_show): Cast to pointer-size
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 29 Aug 2008 08:18:22 +0000 (08:18 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 29 Aug 2008 08:18:22 +0000 (08:18 +0000)
integer before casting to pointer.

src/macmenu.c

index 153969f7efddabe8d72860f749ade95a127e5a97..1482febac6fd439bce69fd43dea83fbdee9b5637 100644 (file)
@@ -1939,7 +1939,7 @@ mac_dialog_show (f, keymaps, title, header, error_name)
        if (!NILP (descrip))
          wv->key = (char *) SDATA (descrip);
        wv->value = (char *) SDATA (item_name);
-       wv->call_data = (void *) i;
+       wv->call_data = (void *) (EMACS_INT) i;
          /* menu item is identified by its index in menu_items table */
        wv->enabled = !NILP (enable);
        wv->help = Qnil;