aboutsummaryrefslogtreecommitdiffstats
path: root/src/region-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/region-cache.c')
-rw-r--r--src/region-cache.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/region-cache.c b/src/region-cache.c
index d2e3d94829b..57a26f2fa64 100644
--- a/src/region-cache.c
+++ b/src/region-cache.c
@@ -759,7 +759,6 @@ void pp_cache (struct region_cache *) EXTERNALLY_VISIBLE;
759void 759void
760pp_cache (struct region_cache *c) 760pp_cache (struct region_cache *c)
761{ 761{
762 ptrdiff_t i;
763 ptrdiff_t beg_u = c->buffer_beg + c->beg_unchanged; 762 ptrdiff_t beg_u = c->buffer_beg + c->beg_unchanged;
764 ptrdiff_t end_u = c->buffer_end - c->end_unchanged; 763 ptrdiff_t end_u = c->buffer_end - c->end_unchanged;
765 764
@@ -768,19 +767,14 @@ pp_cache (struct region_cache *c)
768 c->buffer_beg, c->buffer_end, 767 c->buffer_beg, c->buffer_end,
769 beg_u, end_u); 768 beg_u, end_u);
770 769
771 for (i = 0; i < c->cache_len; i++) 770 for (ptrdiff_t i = 0; i < c->cache_len; i++)
772 { 771 {
773 ptrdiff_t pos = BOUNDARY_POS (c, i); 772 ptrdiff_t pos = BOUNDARY_POS (c, i);
774 773
775 putc (((pos < beg_u) ? 'v' 774 fprintf (stderr, "%c%c%"pD"d : %d\n",
776 : (pos == beg_u) ? '-' 775 pos < beg_u ? 'v' : pos == beg_u ? '-' : ' ',
777 : ' '), 776 pos > end_u ? '^' : pos == end_u ? '-' : ' ',
778 stderr); 777 pos, BOUNDARY_VALUE (c, i));
779 putc (((pos > end_u) ? '^'
780 : (pos == end_u) ? '-'
781 : ' '),
782 stderr);
783 fprintf (stderr, "%"pD"d : %d\n", pos, BOUNDARY_VALUE (c, i));
784 } 778 }
785} 779}
786 780