diff options
| author | Jim Blandy | 1993-06-14 15:06:46 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-14 15:06:46 +0000 |
| commit | 142be3dd62a039410843e6995aae5f09419743d4 (patch) | |
| tree | 03850fd1a6e387f963819e4e99b6d977df579c17 /src | |
| parent | b545bfe6d495b3473e07f609502ca97402faf37b (diff) | |
| download | emacs-142be3dd62a039410843e6995aae5f09419743d4.tar.gz emacs-142be3dd62a039410843e6995aae5f09419743d4.zip | |
* xdisp.c (display_text_line): Use temporary variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 62a029c818d..e9777efee39 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2062,14 +2062,17 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 2062 | unsigned char *p = XSTRING (Voverlay_arrow_string)->data; | 2062 | unsigned char *p = XSTRING (Voverlay_arrow_string)->data; |
| 2063 | int i; | 2063 | int i; |
| 2064 | int len = XSTRING (Voverlay_arrow_string)->size; | 2064 | int len = XSTRING (Voverlay_arrow_string)->size; |
| 2065 | int arrow_end; | ||
| 2065 | 2066 | ||
| 2066 | if (len > width) | 2067 | if (len > width) |
| 2067 | len = width; | 2068 | len = width; |
| 2068 | for (i = 0; i < len; i++) | 2069 | for (i = 0; i < len; i++) |
| 2069 | startp[i] = p[i]; | 2070 | startp[i] = p[i]; |
| 2070 | if (desired_glyphs->used[vpos] < | 2071 | |
| 2071 | (len + startp - desired_glyphs->glyphs[vpos])) | 2072 | /* Bug in SunOS 4.1.1 compiler requires this intermediate variable. */ |
| 2072 | desired_glyphs->used[vpos] = len + startp - desired_glyphs->glyphs[vpos]; | 2073 | arrow_end = (startp - desired_glyphs->glyphs[vpos]) + len; |
| 2074 | if (desired_glyphs->used[vpos] < arrow_end) | ||
| 2075 | desired_glyphs->used[vpos] = arrow_end; | ||
| 2073 | 2076 | ||
| 2074 | overlay_arrow_seen = 1; | 2077 | overlay_arrow_seen = 1; |
| 2075 | } | 2078 | } |