]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid a compiler warning about int-to-ptr casting.
authorJulian Seward <jseward@acm.org>
Sat, 6 Sep 2014 15:25:08 +0000 (15:25 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 6 Sep 2014 15:25:08 +0000 (15:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14480

mpi/libmpiwrap.c

index b2a964dc2f3c3a112daa3232f8cba00501e6fe6e..a5349e066eb4204d96844286200a311578da5202 100644 (file)
@@ -152,7 +152,7 @@ typedef    signed long  Word;
 typedef  unsigned long  UWord;
 
 #if !defined(offsetof)
-#  define offsetof(type,memb) ((int)&((type*)0)->memb)
+#  define offsetof(type,memb) ((UWord)&((type*)0)->memb)
 #endif
 
 /* Find the size of long double image (not 'sizeof(long double)').