From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27502 invoked from network); 16 Nov 1998 04:41:58 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 16 Nov 1998 04:41:58 -0000 Received: from io.nu (qmailr@dogbert.advancenet.net [209.44.30.54]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id XAA09075 for ; Sun, 15 Nov 1998 23:41:56 -0500 Received: (qmail 29065 invoked by uid 1000); 16 Nov 1998 10:44:12 -0000 Message-ID: <19981116104412.A29060@dogbert.io.nu> Date: Mon, 16 Nov 1998 10:44:12 +0000 From: Shaw Terwilliger To: axp-list@redhat.com Subject: C++ gurus; AbiWord pointer casting on Alpha Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i 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)