From: Shaw Terwilliger <sterwill@dogbert.advancenet.net>
To: axp-list@redhat.com
Subject: C++ gurus; AbiWord pointer casting on Alpha
Date: Mon, 16 Nov 1998 10:44:12 +0000 [thread overview]
Message-ID: <19981116104412.A29060@dogbert.io.nu> (raw)
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)
next reply other threads:[~1998-11-16 4:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-16 10:44 Shaw Terwilliger [this message]
1998-11-17 0:56 ` C++ gurus; AbiWord pointer casting on Alpha 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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox