From 8aa3cbcce8b61bf1b402840b686de0edbbb0596b Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sat, 6 Sep 2014 15:25:08 +0000 Subject: [PATCH] Avoid a compiler warning about int-to-ptr casting. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14480 --- mpi/libmpiwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpi/libmpiwrap.c b/mpi/libmpiwrap.c index b2a964dc2f..a5349e066e 100644 --- a/mpi/libmpiwrap.c +++ b/mpi/libmpiwrap.c @@ -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)'). -- 2.47.2