Stop gcc complaining about Helgrind on 64-bit platforms. Note, this
is not a proper fix :-)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3889 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/hg_main.c b/helgrind/hg_main.c
index 91bf650..3b85244 100644
--- a/helgrind/hg_main.c
+++ b/helgrind/hg_main.c
@@ -455,7 +455,8 @@
static inline ThreadLifeSeg *unpackTLS(UInt i)
{
- return (ThreadLifeSeg *)(i << STATE_BITS);
+ /* HACK ALERT -- DUBIOUS CAST */
+ return (ThreadLifeSeg *)ULong_to_Ptr(i << STATE_BITS);
}
/*------------------------------------------------------------*/
@@ -673,7 +674,8 @@
static inline const LockSet *unpackLockSet(UInt id)
{
- return (LockSet *)(id << STATE_BITS);
+ /* HACK ALERT -- DUBIOUS CAST */
+ return (LockSet *)ULong_to_Ptr(id << STATE_BITS);
}
static