From df9733bf6bbaa86c4af08160a0eec218e8d3ef3b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 14 Jul 2011 20:43:50 +0300 Subject: [PATCH] Fix format conversion in bidi.c. src/bidi.c (bidi_dump_cached_states): Fix format of displaying bidi_cache_idx. --- src/ChangeLog | 3 +++ src/bidi.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c2bd1981e76..8d37c524c84 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-07-14 Eli Zaretskii + * bidi.c (bidi_dump_cached_states): Fix format of displaying + bidi_cache_idx. + Support bidi reordering of display and overlay strings. * xdisp.c (compute_display_string_pos) (compute_display_string_end): Accept additional argument STRING. diff --git a/src/bidi.c b/src/bidi.c index 77043d9236f..22a5f0829cd 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -2308,7 +2308,7 @@ bidi_dump_cached_states (void) fprintf (stderr, "The cache is empty.\n"); return; } - fprintf (stderr, "Total of %d state%s in cache:\n", + fprintf (stderr, "Total of %"pD"d state%s in cache:\n", bidi_cache_idx, bidi_cache_idx == 1 ? "" : "s"); for (i = bidi_cache[bidi_cache_idx - 1].charpos; i > 0; i /= 10) -- 2.39.2