diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-01-25 17:20:24 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-01-25 17:20:24 -0800 |
commit | e6f29a682914083dd1a7ed5a4391ae72b7f3e764 (patch) | |
tree | 197cbbe9e361c1ab9f6819603bd6f36de34ce517 /src/coding.h | |
parent | 0113a5e128256b6cc40a4be2536ebadd160d5d77 (diff) | |
download | emacs-e6f29a682914083dd1a7ed5a4391ae72b7f3e764.tar.gz |
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.
Diffstat (limited to 'src/coding.h')
-rw-r--r-- | src/coding.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.h b/src/coding.h index 7730109bcfd..c9c19762d80 100644 --- a/src/coding.h +++ b/src/coding.h @@ -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; |