From: Paul Eggert Date: Tue, 12 Jul 2011 17:35:56 +0000 (-0700) Subject: * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t. X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~160 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82d66f4e89f12f5c5eb6e4a4f80745a69da6b710;p=emacs.git * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8911b6bdce2..c9706aa3a37 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-07-12 Paul Eggert + * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t. + * xfaces.c (Fbitmap_spec_p): Fix integer overflow bug. Without this fix, (bitmap-spec-p '(34359738368 1 "x")) would wrongly return t on a 64-bit host. diff --git a/src/bidi.c b/src/bidi.c index ecdcdd93d66..2662ee3d845 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -1923,7 +1923,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)