* frame.h (struct frame): Use int for menu_bar_items_used
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 May 2011 16:25:30 +0000 (09:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 May 2011 16:25:30 +0000 (09:25 -0700)
instead of EMACS_INT, since it always fits in int.

src/ChangeLog
src/frame.h

index 3bdf512..42c9139 100644 (file)
@@ -3,6 +3,8 @@
        * xmenu.c (set_frame_menubar): Use int, not EMACS_UINT, for indexes
        that always fit in int.  Use a sentinel instead of a counter, to
        avoid a temp and to allay GCC's concerns about possible int overflow.
+       * frame.h (struct frame): Use int for menu_bar_items_used
+       instead of EMACS_INT, since it always fits in int.
 
        * menu.c (grow_menu_items): Check for int overflow.
 
index e733703..db57b1b 100644 (file)
@@ -192,7 +192,7 @@ struct frame
   struct face_cache *face_cache;
 
   /* Number of elements in `menu_bar_vector' that have meaningful data.  */
-  EMACS_INT menu_bar_items_used;
+  int menu_bar_items_used;
 
   /* A buffer to hold the frame's name.  We can't use the Lisp
      string's pointer (`name', above) because it might get relocated.  */