diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 4 |
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 | } |