1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 00:30:37 -08:00

* xdisp.c (handle_display_spec, display_prop_string_p): Use ptrdiff_t, not int.

This commit is contained in:
Paul Eggert 2011-09-27 09:03:48 -07:00
parent 3460fdb799
commit 43ad2e9af4
2 changed files with 3 additions and 2 deletions

View file

@ -705,6 +705,7 @@
(update_tool_bar, hscroll_window_tree, redisplay_internal)
(redisplay_window, dump_glyph_row, display_mode_line)
(Fformat_mode_line, decode_mode_spec, on_hot_spot_p):
(handle_display_spec, display_prop_string_p):
Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
(handle_single_display_spec, build_desired_tool_bar_string)
(redisplay_tool_bar, scroll_window_tree, Fdump_glyph_matrix)

View file

@ -4297,7 +4297,7 @@ handle_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
}
else if (VECTORP (spec))
{
int i;
ptrdiff_t i;
for (i = 0; i < ASIZE (spec); ++i)
if ((rv = handle_single_display_spec (it, AREF (spec, i), object,
overlay, position, bufpos,
@ -4874,7 +4874,7 @@ display_prop_string_p (Lisp_Object prop, Lisp_Object string)
else if (VECTORP (prop))
{
/* A vector of sub-properties. */
int i;
ptrdiff_t i;
for (i = 0; i < ASIZE (prop); ++i)
if (single_display_spec_string_p (AREF (prop, i), string))
return 1;