|
From: <sv...@va...> - 2005-06-11 10:33:39
|
Author: sewardj
Date: 2005-06-11 11:33:35 +0100 (Sat, 11 Jun 2005)
New Revision: 3889
Log:
Stop gcc complaining about Helgrind on 64-bit platforms. Note, this
is not a proper fix :-)
Modified:
trunk/helgrind/hg_main.c
Modified: trunk/helgrind/hg_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/helgrind/hg_main.c 2005-06-11 10:32:57 UTC (rev 3888)
+++ trunk/helgrind/hg_main.c 2005-06-11 10:33:35 UTC (rev 3889)
@@ -455,7 +455,8 @@
=20
static inline ThreadLifeSeg *unpackTLS(UInt i)
{
- return (ThreadLifeSeg *)(i << STATE_BITS);
+ /* HACK ALERT -- DUBIOUS CAST */
+ return (ThreadLifeSeg *)ULong_to_Ptr(i << STATE_BITS);
}
=20
/*------------------------------------------------------------*/
@@ -673,7 +674,8 @@
=20
static inline const LockSet *unpackLockSet(UInt id)
{
- return (LockSet *)(id << STATE_BITS);
+ /* HACK ALERT -- DUBIOUS CAST */
+ return (LockSet *)ULong_to_Ptr(id << STATE_BITS);
}
=20
static=20
|