Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* C++ gurus; AbiWord pointer casting on Alpha
@ 1998-11-16 10:44 Shaw Terwilliger
  1998-11-17  0:56 ` Bibek Sahu
  0 siblings, 1 reply; 5+ messages in thread
From: Shaw Terwilliger @ 1998-11-16 10:44 UTC (permalink / raw)
  To: axp-list

On Sun, Nov 15, 1998 at 10:50:20PM -0500, Michael J. Donahue wrote:
> >>                _wd * wd = (_wd *)m_menuFactoryItems[k].callback_action;
> Ulrich's question is the first thing to check.  Anyone with experience
> porting 32-bit apps to the Alpha knows that pointer casts are red flags.

Without even trying the compiler test, I can assure you it's our
casting problem.  :)  Unfortunately, it's deeper than our code, it's
GTK+.  The callback_action member is a "guint", which should be defined
to be sizeof(unsigned int) on your platform.  This works on Intels, breaks on
Alphas (and any other platform where sizeof(unsigned int) !=               
sizeof(unsigned int *)).                                                 

So, now it's time to find out why the GTK+ guys are using guints as
pointer substitutes.  I really feel bad for not digging into the code
as soon as Brian put out this message, but I'll soon get to deal with
the Alpha issues every day, thanks to him.  :)                          
        
--           
Shaw Terwilliger (twig@advancenet.net sterwill@abisource.com)


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <3650D107.CDA25BE0@postman.abisource.com>]

end of thread, other threads:[~1998-11-19 23:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-16 10:44 C++ gurus; AbiWord pointer casting on Alpha Shaw Terwilliger
1998-11-17  0:56 ` Bibek Sahu
1998-11-17  1:12   ` Paul Tomblin
     [not found] <3650D107.CDA25BE0@postman.abisource.com>
1998-11-19 22:26 ` Bibek Sahu
1998-11-19 23:02   ` Bibek Sahu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox