diff options
| author | Paul Eggert | 2011-07-25 09:39:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-25 09:39:39 -0700 |
| commit | 2eb1f9e6a50ae13ada9a019e42fb6969f935454f (patch) | |
| tree | 9ad114a0d57389ad2d4812f6f75a247de8856fe7 /src | |
| parent | 2238127283d703f38765f9b3f6a64f799d18e9e5 (diff) | |
| download | emacs-2eb1f9e6a50ae13ada9a019e42fb6969f935454f.tar.gz emacs-2eb1f9e6a50ae13ada9a019e42fb6969f935454f.zip | |
* bidi.c (bidi_dump_cached_states): Fix printf format mismatch.
Found by GCC static checking and --with-wide-int on a 32-bit host.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/bidi.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b3d2f64bcc7..3fc8067e114 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-07-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * bidi.c (bidi_dump_cached_states): Fix printf format mismatch. | ||
| 4 | Found by GCC static checking and --with-wide-int on a 32-bit host. | ||
| 5 | |||
| 1 | 2011-07-25 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-07-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (compute_display_string_pos): Fix logic of caching | 8 | * xdisp.c (compute_display_string_pos): Fix logic of caching |
diff --git a/src/bidi.c b/src/bidi.c index c83ee549923..412dc94cb86 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -2308,7 +2308,7 @@ bidi_dump_cached_states (void) | |||
| 2308 | fprintf (stderr, "The cache is empty.\n"); | 2308 | fprintf (stderr, "The cache is empty.\n"); |
| 2309 | return; | 2309 | return; |
| 2310 | } | 2310 | } |
| 2311 | fprintf (stderr, "Total of %"pD"d state%s in cache:\n", | 2311 | fprintf (stderr, "Total of %"pI"d state%s in cache:\n", |
| 2312 | bidi_cache_idx, bidi_cache_idx == 1 ? "" : "s"); | 2312 | bidi_cache_idx, bidi_cache_idx == 1 ? "" : "s"); |
| 2313 | 2313 | ||
| 2314 | for (i = bidi_cache[bidi_cache_idx - 1].charpos; i > 0; i /= 10) | 2314 | for (i = bidi_cache[bidi_cache_idx - 1].charpos; i > 0; i /= 10) |