* dispnew.c: Integer signedness and overflow fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jul 2011 22:14:22 +0000 (15:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jul 2011 22:14:22 +0000 (15:14 -0700)
commitdfd153ae803962a5eaffe8a65e77f749c0574edf
tree805e38cc8bd718dadc992e7abc62350e1aeedcae
parenta81d11a3efb4d511c5c34c8983dc6aab5d619ea1
* 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
src/dispnew.c