diff options
| author | Paul Eggert | 2011-07-12 10:35:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-12 10:35:56 -0700 |
| commit | 82d66f4e89f12f5c5eb6e4a4f80745a69da6b710 (patch) | |
| tree | 73d7b16bf5cb13c9058bc536232c45eb0397c582 /src | |
| parent | c8907a930eb953a30831faa3a7ccae74e4ae2f23 (diff) | |
| download | emacs-82d66f4e89f12f5c5eb6e4a4f80745a69da6b710.tar.gz emacs-82d66f4e89f12f5c5eb6e4a4f80745a69da6b710.zip | |
* bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/bidi.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8911b6bdce2..c9706aa3a37 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-07-12 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-07-12 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t. | ||
| 4 | |||
| 3 | * xfaces.c (Fbitmap_spec_p): Fix integer overflow bug. | 5 | * xfaces.c (Fbitmap_spec_p): Fix integer overflow bug. |
| 4 | Without this fix, (bitmap-spec-p '(34359738368 1 "x")) | 6 | Without this fix, (bitmap-spec-p '(34359738368 1 "x")) |
| 5 | would wrongly return t on a 64-bit host. | 7 | 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) | |||
| 1923 | fprintf (stderr, "The cache is empty.\n"); | 1923 | fprintf (stderr, "The cache is empty.\n"); |
| 1924 | return; | 1924 | return; |
| 1925 | } | 1925 | } |
| 1926 | fprintf (stderr, "Total of %d state%s in cache:\n", | 1926 | fprintf (stderr, "Total of %"pD"d state%s in cache:\n", |
| 1927 | bidi_cache_idx, bidi_cache_idx == 1 ? "" : "s"); | 1927 | bidi_cache_idx, bidi_cache_idx == 1 ? "" : "s"); |
| 1928 | 1928 | ||
| 1929 | for (i = bidi_cache[bidi_cache_idx - 1].charpos; i > 0; i /= 10) | 1929 | for (i = bidi_cache[bidi_cache_idx - 1].charpos; i > 0; i /= 10) |