diff options
Diffstat (limited to 'src/xdisp.c')
| -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 8ec12962e77..5f86a594968 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2778,7 +2778,7 @@ init_from_display_pos (struct it *it, struct window *w, struct display_pos *pos) | |||
| 2778 | to 16 in 22.1 to make this a lesser problem. */ | 2778 | to 16 in 22.1 to make this a lesser problem. */ |
| 2779 | for (i = 0; i < it->n_overlay_strings && i < OVERLAY_STRING_CHUNK_SIZE; ++i) | 2779 | for (i = 0; i < it->n_overlay_strings && i < OVERLAY_STRING_CHUNK_SIZE; ++i) |
| 2780 | { | 2780 | { |
| 2781 | const char *s = SDATA (it->overlay_strings[i]); | 2781 | const char *s = SSDATA (it->overlay_strings[i]); |
| 2782 | const char *e = s + SBYTES (it->overlay_strings[i]); | 2782 | const char *e = s + SBYTES (it->overlay_strings[i]); |
| 2783 | 2783 | ||
| 2784 | while (s < e && *s != '\n') | 2784 | while (s < e && *s != '\n') |
| @@ -20077,7 +20077,7 @@ calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop, | |||
| 20077 | { | 20077 | { |
| 20078 | if (SCHARS (SYMBOL_NAME (prop)) == 2) | 20078 | if (SCHARS (SYMBOL_NAME (prop)) == 2) |
| 20079 | { | 20079 | { |
| 20080 | char *unit = SDATA (SYMBOL_NAME (prop)); | 20080 | char *unit = SSDATA (SYMBOL_NAME (prop)); |
| 20081 | 20081 | ||
| 20082 | if (unit[0] == 'i' && unit[1] == 'n') | 20082 | if (unit[0] == 'i' && unit[1] == 'n') |
| 20083 | pixels = 1.0; | 20083 | pixels = 1.0; |