Commit 82d66f4e authored by Paul Eggert's avatar Paul Eggert
Browse files

* bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t.

parent c8907a93
2011-07-12 Paul Eggert <eggert@cs.ucla.edu>
* 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.
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment