changeset 18733:a22147185235

(dumpglyphs): Declare local variable first_ch as Lisp_Object, not int.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jul 1997 06:35:22 +0000
parents a0663e413622
children a26b6aca56ca
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Jul 12 06:34:16 1997 +0000
+++ b/src/xterm.c	Sat Jul 12 06:35:22 1997 +0000
@@ -557,7 +557,8 @@
       /* Get the face-code of the next GLYPH.  */
       int cf, len;
       GLYPH g = *gp;
-      int ch, first_ch, charset;
+      int ch, charset;
+      Lisp_Object first_ch;
       /* HIGHEST and LOWEST are used while drawing a composite
          character.  The meanings are described later.  */
       int highest, lowest;
@@ -565,7 +566,7 @@
       GLYPH_FOLLOW_ALIASES (tbase, tlen, g);
       cf = (cmpcharp ? cmpcharp->face_work : FAST_GLYPH_FACE (g));
       ch = FAST_GLYPH_CHAR (g);
-      if (gidx == 0) first_ch = ch;
+      if (gidx == 0) XSETFASTINT (first_ch, ch);
       charset = CHAR_CHARSET (ch);
       if (charset == CHARSET_COMPOSITION)
 	{