aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.c
diff options
context:
space:
mode:
authorPaul Eggert2011-06-02 01:02:59 -0700
committerPaul Eggert2011-06-02 01:02:59 -0700
commit4008751468313f68b74ae3f1f1d3857e52f0062f (patch)
tree097dc626ab89c75e88fb70ba9a32f8f350f4c73c /src/composite.c
parent7d5200893a8cc980744bb4c65355df5a936388bb (diff)
parentaf3c30cb283811135d9a1136fa5072e6922410a9 (diff)
downloademacs-4008751468313f68b74ae3f1f1d3857e52f0062f.tar.gz
emacs-4008751468313f68b74ae3f1f1d3857e52f0062f.zip
Merge: Remove arbitrary limit of 2**31 entries in hash tables.
Fixes: debbugs:8771
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/composite.c b/src/composite.c
index 7849ffa3a18..ab9ec3f5a03 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -179,8 +179,8 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
179 Lisp_Object id, length, components, key, *key_contents; 179 Lisp_Object id, length, components, key, *key_contents;
180 int glyph_len; 180 int glyph_len;
181 struct Lisp_Hash_Table *hash_table = XHASH_TABLE (composition_hash_table); 181 struct Lisp_Hash_Table *hash_table = XHASH_TABLE (composition_hash_table);
182 int hash_index; 182 EMACS_INT hash_index;
183 unsigned hash_code; 183 EMACS_UINT hash_code;
184 struct composition *cmp; 184 struct composition *cmp;
185 EMACS_INT i; 185 EMACS_INT i;
186 int ch; 186 int ch;
@@ -656,7 +656,7 @@ static Lisp_Object
656gstring_lookup_cache (Lisp_Object header) 656gstring_lookup_cache (Lisp_Object header)
657{ 657{
658 struct Lisp_Hash_Table *h = XHASH_TABLE (gstring_hash_table); 658 struct Lisp_Hash_Table *h = XHASH_TABLE (gstring_hash_table);
659 int i = hash_lookup (h, header, NULL); 659 EMACS_INT i = hash_lookup (h, header, NULL);
660 660
661 return (i >= 0 ? HASH_VALUE (h, i) : Qnil); 661 return (i >= 0 ? HASH_VALUE (h, i) : Qnil);
662} 662}
@@ -665,7 +665,7 @@ Lisp_Object
665composition_gstring_put_cache (Lisp_Object gstring, EMACS_INT len) 665composition_gstring_put_cache (Lisp_Object gstring, EMACS_INT len)
666{ 666{
667 struct Lisp_Hash_Table *h = XHASH_TABLE (gstring_hash_table); 667 struct Lisp_Hash_Table *h = XHASH_TABLE (gstring_hash_table);
668 unsigned hash; 668 EMACS_UINT hash;
669 Lisp_Object header, copy; 669 Lisp_Object header, copy;
670 EMACS_INT i; 670 EMACS_INT i;
671 671