diff options
| author | Paul Eggert | 2011-07-18 23:07:07 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-18 23:07:07 -0700 |
| commit | d3411f89d34bd1009cae738f917abf477be09882 (patch) | |
| tree | 1faf0e2f21f2ea5e19a33eb5ae1c4ae633a1f1ea /src/coding.c | |
| parent | e097a6fa863b26952a476e71a786fa7b2460277b (diff) | |
| download | emacs-d3411f89d34bd1009cae738f917abf477be09882.tar.gz emacs-d3411f89d34bd1009cae738f917abf477be09882.zip | |
Use ptrdiff_t for hash table indexes.
* category.c (hash_get_category_set):
* ccl.c (ccl_driver):
* charset.h (struct charset.hash_index, CHECK_CHARSET_GET_ID):
* coding.c (coding_system_charset_list, detect_coding_system):
* coding.h (struct coding_system.id):
* composite.c (get_composition_id, gstring_lookup_cache):
* fns.c (hash_lookup, hash_put, Fgethash, Fputhash):
* image.c (xpm_get_color_table_h):
* lisp.h (hash_lookup, hash_put):
* minibuf.c (Ftest_completion):
Use ptrdiff_t for hash table indexes, not int (which is too
narrow, on 64-bit hosts) or EMACS_INT (which is too wide, on
32-bit --with-wide-int hosts).
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 65c8a767c2b..73a4bbc5e25 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5838,7 +5838,7 @@ coding_charset_list (struct coding_system *coding) | |||
| 5838 | Lisp_Object | 5838 | Lisp_Object |
| 5839 | coding_system_charset_list (Lisp_Object coding_system) | 5839 | coding_system_charset_list (Lisp_Object coding_system) |
| 5840 | { | 5840 | { |
| 5841 | int id; | 5841 | ptrdiff_t id; |
| 5842 | Lisp_Object attrs, charset_list; | 5842 | Lisp_Object attrs, charset_list; |
| 5843 | 5843 | ||
| 5844 | CHECK_CODING_SYSTEM_GET_ID (coding_system, id); | 5844 | CHECK_CODING_SYSTEM_GET_ID (coding_system, id); |
| @@ -8076,7 +8076,7 @@ detect_coding_system (const unsigned char *src, | |||
| 8076 | Lisp_Object attrs, eol_type; | 8076 | Lisp_Object attrs, eol_type; |
| 8077 | Lisp_Object val = Qnil; | 8077 | Lisp_Object val = Qnil; |
| 8078 | struct coding_system coding; | 8078 | struct coding_system coding; |
| 8079 | int id; | 8079 | ptrdiff_t id; |
| 8080 | struct coding_detection_info detect_info; | 8080 | struct coding_detection_info detect_info; |
| 8081 | enum coding_category base_category; | 8081 | enum coding_category base_category; |
| 8082 | int null_byte_found = 0, eight_bit_found = 0; | 8082 | int null_byte_found = 0, eight_bit_found = 0; |