summaryrefslogtreecommitdiff
path: root/src/region-cache.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-09-24 15:30:13 -0400
committerEli Zaretskii <eliz@gnu.org>2010-09-24 15:30:13 -0400
commit5816888b23238706d35d9d6e094c24866dedf2c6 (patch)
tree3f2a3ad6fa165c8e8aeb7675cda07d5ab15b490b /src/region-cache.c
parent07914cd0078f3d8dc720644fd899ce8e3f0b1913 (diff)
downloademacs-5816888b23238706d35d9d6e094c24866dedf2c6.tar.gz
Fix int/EMACS_INT in eval.c and indent.c, correct previous changes.
indent.c (Fcurrent_indentation, indented_beyond_p) (compute_motion): Use EMACS_INT for buffer position variables. lisp.h (indented_beyond_p): Adjust prototype. buffer.c (overlay_strings): Return EMACS_INT. buffer.h (overlay_strings): Adjust prototype. region-cache.c (pp_cache): Adjust format to arguments. eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT. (call_debugger): Use EMACS_INT for specpdl_size related variables. (verror): Use EMACS_INT for size of allocated buffer.
Diffstat (limited to 'src/region-cache.c')
-rw-r--r--src/region-cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/region-cache.c b/src/region-cache.c
index b6c43359b1b..9037b5df4b4 100644
--- a/src/region-cache.c
+++ b/src/region-cache.c
@@ -788,9 +788,9 @@ pp_cache (struct region_cache *c)
EMACS_INT end_u = c->buffer_end - c->end_unchanged;
fprintf (stderr,
- "basis: %d..%d modified: %d..%d\n",
- c->buffer_beg, c->buffer_end,
- beg_u, end_u);
+ "basis: %ld..%ld modified: %ld..%ld\n",
+ (long)c->buffer_beg, (long)c->buffer_end,
+ (long)beg_u, (long)end_u);
for (i = 0; i < c->cache_len; i++)
{
@@ -804,7 +804,7 @@ pp_cache (struct region_cache *c)
: (pos == end_u) ? '-'
: ' '),
stderr);
- fprintf (stderr, "%d : %d\n", pos, BOUNDARY_VALUE (c, i));
+ fprintf (stderr, "%ld : %d\n", (long)pos, BOUNDARY_VALUE (c, i));
}
}