changeset 3726:33e82e88a210

* xdisp.c (display_text_line): Use temporary variable.
author Jim Blandy <jimb@redhat.com>
date Mon, 14 Jun 1993 15:06:46 +0000
parents bd468d77adce
children 87bd6540514f
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }