|
From: <sv...@va...> - 2007-05-02 10:42:50
|
Author: sewardj Date: 2007-05-02 11:42:48 +0100 (Wed, 02 May 2007) New Revision: 1760 Log: Merge r1759 (keep gcc-4.2 happy) Modified: branches/VEX_3_2_BRANCH/pub/libvex_basictypes.h Modified: branches/VEX_3_2_BRANCH/pub/libvex_basictypes.h =================================================================== --- branches/VEX_3_2_BRANCH/pub/libvex_basictypes.h 2007-05-01 13:53:01 UTC (rev 1759) +++ branches/VEX_3_2_BRANCH/pub/libvex_basictypes.h 2007-05-02 10:42:48 UTC (rev 1760) @@ -123,7 +123,7 @@ /* This is so useful it should be visible absolutely everywhere. */ #if !defined(offsetof) -# define offsetof(type,memb) ((Int)&((type*)0)->memb) +# define offsetof(type,memb) ((Int)(HWord)&((type*)0)->memb) #endif |