aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-04 22:11:14 -0700
committerPaul Eggert2011-04-04 22:11:14 -0700
commit27ccc379bfd6d2daa50abba8b2c539f99d9093af (patch)
tree68dd541dd0eb009991f98916e013ba5be5019c51 /src
parentdcd5c89a9e2fbaecd3f5a55c0221636537950c46 (diff)
downloademacs-27ccc379bfd6d2daa50abba8b2c539f99d9093af.tar.gz
emacs-27ccc379bfd6d2daa50abba8b2c539f99d9093af.zip
* composite.c (composition_gstring_put_cache): Use unsigned integer.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/composite.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d7edbb610f7..787b3e2f448 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-04-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 * composite.c (composition_gstring_put_cache): Use unsigned integer.
4
12011-04-04 Paul Eggert <eggert@cs.ucla.edu> 52011-04-04 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 * composite.h, composite.c (composition_gstring_put_cache): 7 * composite.h, composite.c (composition_gstring_put_cache):
diff --git a/src/composite.c b/src/composite.c
index 1ce7bff2982..c18f9e8b56e 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -672,11 +672,11 @@ composition_gstring_put_cache (Lisp_Object gstring, EMACS_INT len)
672 hash = h->hashfn (h, header); 672 hash = h->hashfn (h, header);
673 if (len < 0) 673 if (len < 0)
674 { 674 {
675 len = LGSTRING_GLYPH_LEN (gstring); 675 EMACS_UINT j, glyph_len = LGSTRING_GLYPH_LEN (gstring);
676 for (i = 0; i < len; i++) 676 for (j = 0; j < glyph_len; j++)
677 if (NILP (LGSTRING_GLYPH (gstring, i))) 677 if (NILP (LGSTRING_GLYPH (gstring, j)))
678 break; 678 break;
679 len = i; 679 len = j;
680 } 680 }
681 681
682 copy = Fmake_vector (make_number (len + 2), Qnil); 682 copy = Fmake_vector (make_number (len + 2), Qnil);