aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-05-12 09:25:30 -0700
committerPaul Eggert2011-05-12 09:25:30 -0700
commitd230cb74b5a1f6bb8d340e11ca1a661e5ce6a7ae (patch)
tree2726ee8843778e3da208e11f797d2992196cf73a /src
parent3e26f69c4f5f7fe38081f0889186d6a9260c85e0 (diff)
downloademacs-d230cb74b5a1f6bb8d340e11ca1a661e5ce6a7ae.tar.gz
emacs-d230cb74b5a1f6bb8d340e11ca1a661e5ce6a7ae.zip
* frame.h (struct frame): Use int for menu_bar_items_used
instead of EMACS_INT, since it always fits in int.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/frame.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3bdf5129da9..42c91399095 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,6 +3,8 @@
3 * xmenu.c (set_frame_menubar): Use int, not EMACS_UINT, for indexes 3 * xmenu.c (set_frame_menubar): Use int, not EMACS_UINT, for indexes
4 that always fit in int. Use a sentinel instead of a counter, to 4 that always fit in int. Use a sentinel instead of a counter, to
5 avoid a temp and to allay GCC's concerns about possible int overflow. 5 avoid a temp and to allay GCC's concerns about possible int overflow.
6 * frame.h (struct frame): Use int for menu_bar_items_used
7 instead of EMACS_INT, since it always fits in int.
6 8
7 * menu.c (grow_menu_items): Check for int overflow. 9 * menu.c (grow_menu_items): Check for int overflow.
8 10
diff --git a/src/frame.h b/src/frame.h
index e73370340f1..db57b1be980 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -192,7 +192,7 @@ struct frame
192 struct face_cache *face_cache; 192 struct face_cache *face_cache;
193 193
194 /* Number of elements in `menu_bar_vector' that have meaningful data. */ 194 /* Number of elements in `menu_bar_vector' that have meaningful data. */
195 EMACS_INT menu_bar_items_used; 195 int menu_bar_items_used;
196 196
197 /* A buffer to hold the frame's name. We can't use the Lisp 197 /* A buffer to hold the frame's name. We can't use the Lisp
198 string's pointer (`name', above) because it might get relocated. */ 198 string's pointer (`name', above) because it might get relocated. */