From dfd153ae803962a5eaffe8a65e77f749c0574edf Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 7 Jul 2011 15:14:22 -0700 Subject: * dispnew.c: Integer signedness and overflow fixes. Remove unnecessary forward decls, that were a maintenance hassle. (history_tick): Now uprintmax_t, so it's more likely to avoid overflow. All uses changed. (adjust_glyph_matrix, realloc_glyph_pool, adjust_frame_message_buffer) (scrolling_window): Use ptrdiff_t, not int, for byte count. (prepare_desired_row, line_draw_cost): Use int, not unsigned, where either works. (save_current_matrix, restore_current_matrix): Use ptrdiff_t, not size_t, where either works. (init_display): Check for overflow more accurately, and without relying on undefined behavior. --- src/ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/ChangeLog') diff --git a/src/ChangeLog b/src/ChangeLog index 62bf5712621..e2cf24fc173 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,18 @@ 2011-07-07 Paul Eggert + * dispnew.c: Integer signedness and overflow fixes. + Remove unnecessary forward decls, that were a maintenance hassle. + (history_tick): Now uprintmax_t, so it's more likely to avoid overflow. + All uses changed. + (adjust_glyph_matrix, realloc_glyph_pool, adjust_frame_message_buffer) + (scrolling_window): Use ptrdiff_t, not int, for byte count. + (prepare_desired_row, line_draw_cost): + Use int, not unsigned, where either works. + (save_current_matrix, restore_current_matrix): + Use ptrdiff_t, not size_t, where either works. + (init_display): Check for overflow more accurately, and without + relying on undefined behavior. + * editfns.c (pWIDE, pWIDElen, signed_wide, unsigned_wide): Remove, replacing with the new symbols in lisp.h. All uses changed. * fileio.c (make_temp_name): -- cgit v1.2.1