From xemacs-m  Thu Sep 25 04:36:56 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA16955
	for <xemacs-beta@xemacs.org>; Thu, 25 Sep 1997 04:36:56 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.7/8.8.7) id CAA27798;
	Thu, 25 Sep 1997 02:43:04 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: 20.3-b19-23 dumps core on HP-UX 9.05
References: <of090wmc0e6.fsf@gamgee.ntc.nokia.com> <m2u3fal88k.fsf@altair.xemacs.org> <of067rqaqd7.fsf@gamgee.ntc.nokia.com> <m2n2l13kwg.fsf@altair.xemacs.org> <of04t79bwf3.fsf@gamgee.ntc.nokia.com>
X-Face: (:YAD@JS'&Kz'M}n7eX7gEvPR6U1mJ-kt;asEc2qAv;h{Yw7ckz<7+X_SYeTNAaPui:e~x$
 ,A=gkt*>UPL/}\a/#C~v2%ETiAY_sx;xve0yL??JWTtX_-NUzXyP38UdW#cmN1\4(X!c3m#%IbtB-3
 Z-!xpZi!`E.s{(;aP=b11"!3wQu]1j@^V|;n=B|{l<bZV1.AI`zWV%kPCnUhcgEe\(}/_kNd6,*3ZJ
 Q3o<YQ3^u;7jS=:p0--u3msQO
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: Pekka Marjola's message of "25 Sep 1997 12:00:16 +0300"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 25 Sep 1997 02:43:03 -0700
Message-ID: <m2u3f9loew.fsf@altair.xemacs.org>
Lines: 66
X-Mailer: Quassia Gnus v0.10/XEmacs 20.3(beta24) - "Ljubljana"

Pekka Marjola <pema@iki.fi> writes:

>>>>>> In <m2n2l13kwg.fsf@altair.xemacs.org>,
>>>>>> On 25 Sep 1997 00:36:15 -0700,
>>>>>> "sb" == SL Baur <steve@xemacs.org> writes:

sb> Try applying the attached patch and see if that helps (it reverts this 
sb> file to what it was in 18).

> Not good enough (in b23), there are other changes.

O.K.  Please revert that patch and try just the attached one.
Please try compiling it unoptimized first before compiling it
optimized.

--- /home/xemacs/xemacs-20.0/src/glyphs-x.c	Tue Sep  2 20:39:38 1997
+++ ./glyphs-x.c	Thu Sep 25 02:40:05 1997
@@ -1482,9 +1482,12 @@
     depth = DefaultDepthOfScreen (scr);
 
     /* first get bitmap_pad (from XPM) */
-    bitmap_pad = ((depth > 16) ? 32 :
-		  (depth >  8) ? 16 :
-		  8);
+    if (depth > 16)
+      bitmap_pad = 32;
+    else if (depth > 8)
+      bitmap_pad = 16;
+    else
+      bitmap_pad = 8;
 
     unwind.ximage = XCreateImage (dpy, DefaultVisualOfScreen (scr),
 				  depth, ZPixmap, 0, 0, width, height,
@@ -1859,9 +1862,12 @@
     depth = DefaultDepthOfScreen (scr);
 
     /* first get bitmap_pad (from XPM) */
-    bitmap_pad = ((depth > 16) ? 32 :
-		  (depth >  8) ? 16 :
-		  8);
+    if (depth > 16)
+      bitmap_pad = 32;
+    else if (depth > 8)
+      bitmap_pad = 16;
+    else
+      bitmap_pad = 8;
 
     unwind.ximage = XCreateImage (dpy, DefaultVisualOfScreen (scr),
 				  depth, ZPixmap, 0, 0, width, height,
@@ -2264,9 +2270,12 @@
     depth = DefaultDepthOfScreen (scr);
 
     /* first get bitmap_pad (from XPM) */
-    bitmap_pad = ((depth > 16) ? 32 :
-		  (depth >  8) ? 16 :
-		  8);
+    if (depth > 16)
+     bitmap_pad = 32;
+    else if (depth > 8)
+      bitmap_pad = 16;
+    else
+      bitmap_pad = 8;
 
     unwind.ximage = XCreateImage (dpy, DefaultVisualOfScreen (scr),
 				  depth, ZPixmap, 0, 0, width, height,

