mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-16 02:50:26 -08:00
When decoding, prefer ptrdiff_t to int for buffer positions etc.
* coding.c (detect_coding_utf_8, emacs_mule_char) (detect_coding_iso_2022, encode_coding_iso_2022, check_ascii) (check_utf_8, decode_coding): * coding.h (struct coding_system.errors): Use ptrdiff_t, not int, for integer values derived from buffer and string positions.
This commit is contained in:
parent
0113a5e128
commit
e6f29a6829
3 changed files with 17 additions and 9 deletions
|
|
@ -477,7 +477,7 @@ struct coding_system
|
|||
ptrdiff_t produced, produced_char, consumed, consumed_char;
|
||||
|
||||
/* Number of error source data found in a decoding routine. */
|
||||
int errors;
|
||||
ptrdiff_t errors;
|
||||
|
||||
/* Store the positions of error source data. */
|
||||
ptrdiff_t *error_positions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue