aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-04-08 01:27:28 +0000
committerKarl Heuer1994-04-08 01:27:28 +0000
commitdedd1182ee076e170ae102af0542b18404bc4152 (patch)
treef6ba914129517f54e0f0c7bc73be951c06d909a3
parent395ec62efe4fc1a970356ffd3cf163496152eea2 (diff)
downloademacs-dedd1182ee076e170ae102af0542b18404bc4152.tar.gz
emacs-dedd1182ee076e170ae102af0542b18404bc4152.zip
(copy_part_of_rope): Replace non-glyph with 0.
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index db0515d04c5..85a7f968c95 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1903,7 +1903,7 @@ copy_part_of_rope (f, to, s, from, len, face)
1903 if (! FRAME_TERMCAP_P (f)) 1903 if (! FRAME_TERMCAP_P (f))
1904 while (n--) 1904 while (n--)
1905 { 1905 {
1906 int glyph = XFASTINT (*fp); 1906 int glyph = (INTEGERP (*fp) ? XFASTINT (*fp) : 0);
1907 int facecode; 1907 int facecode;
1908 1908
1909 if (FAST_GLYPH_FACE (glyph) == 0) 1909 if (FAST_GLYPH_FACE (glyph) == 0)
@@ -1928,7 +1928,7 @@ copy_part_of_rope (f, to, s, from, len, face)
1928#endif 1928#endif
1929 while (n--) 1929 while (n--)
1930 { 1930 {
1931 if (to >= s) *to = XFASTINT (*fp); 1931 if (to >= s) *to = (INTEGERP (*fp) ? XFASTINT (*fp) : 0);
1932 ++to; 1932 ++to;
1933 ++fp; 1933 ++fp;
1934 } 1934 }