Use ptrdiff_t for composition IDs.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2011 21:39:36 +0000 (14:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2011 21:39:36 +0000 (14:39 -0700)
commitebfa62c01481332072f519581aaf4d8d7da49e68
treec62f6a866f44165112999f66f5ca7e5f30dc2af3
parent63cf7836ae7616ce91d7eeaeac997d71609e191b
Use ptrdiff_t for composition IDs.

* character.c (lisp_string_width):
* composite.c (composition_table_size, n_compositions)
(get_composition_id, composition_gstring_from_id):
* dispextern.h (struct glyph_string.cmp_id, struct composition_it.id):
* xdisp.c (BUILD_COMPOSITE_GLYPH_STRING):
* window.c (Frecenter):
Use ptrdiff_t, not int, for composition IDs.
* composite.c (get_composition_id): Check for integer overflow.
* composite.h: Adjust prototypes to match the above changes.
src/ChangeLog
src/character.c
src/composite.c
src/composite.h
src/dispextern.h
src/window.c
src/xdisp.c