aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/frame.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c46eec626bd..e2b613d03c8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-07-28 Paul Eggert <eggert@cs.ucla.edu> 12011-07-28 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * frame.h (struct frame): Use int, not EMACS_INT, where int works.
4 This is for the members text_lines, text_cols, total_lines, total_cols,
5 where the system imposes an 'int' limit.
6
3 * frame.c: Integer overflow fixes. 7 * frame.c: Integer overflow fixes.
4 (set_menu_bar_lines, x_set_frame_parameters, x_set_scroll_bar_width) 8 (set_menu_bar_lines, x_set_frame_parameters, x_set_scroll_bar_width)
5 (x_figure_window_size): Check for integer overflow. 9 (x_figure_window_size): Check for integer overflow.
diff --git a/src/frame.h b/src/frame.h
index 8dccfb8540a..3775403810f 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -258,11 +258,11 @@ struct frame
258 258
259 /* Size of this frame, excluding fringes, scroll bars etc., 259 /* Size of this frame, excluding fringes, scroll bars etc.,
260 in units of canonical characters. */ 260 in units of canonical characters. */
261 EMACS_INT text_lines, text_cols; 261 int text_lines, text_cols;
262 262
263 /* Total size of this frame (i.e. its native window), in units of 263 /* Total size of this frame (i.e. its native window), in units of
264 canonical characters. */ 264 canonical characters. */
265 EMACS_INT total_lines, total_cols; 265 int total_lines, total_cols;
266 266
267 /* New text height and width for pending size change. 267 /* New text height and width for pending size change.
268 0 if no change pending. */ 268 0 if no change pending. */