# HG changeset patch # User Jim Blandy # Date 740070406 0 # Node ID 33e82e88a2104596c72336f389b8946491e1b82d # Parent bd468d77adceed738d5403e7c68f67257da3b415 * xdisp.c (display_text_line): Use temporary variable. diff -r bd468d77adce -r 33e82e88a210 src/xdisp.c --- a/src/xdisp.c Mon Jun 14 14:58:03 1993 +0000 +++ b/src/xdisp.c Mon Jun 14 15:06:46 1993 +0000 @@ -2062,14 +2062,17 @@ unsigned char *p = XSTRING (Voverlay_arrow_string)->data; int i; int len = XSTRING (Voverlay_arrow_string)->size; + int arrow_end; if (len > width) len = width; for (i = 0; i < len; i++) startp[i] = p[i]; - if (desired_glyphs->used[vpos] < - (len + startp - desired_glyphs->glyphs[vpos])) - desired_glyphs->used[vpos] = len + startp - desired_glyphs->glyphs[vpos]; + + /* Bug in SunOS 4.1.1 compiler requires this intermediate variable. */ + arrow_end = (startp - desired_glyphs->glyphs[vpos]) + len; + if (desired_glyphs->used[vpos] < arrow_end) + desired_glyphs->used[vpos] = arrow_end; overlay_arrow_seen = 1; }