|
From: <sv...@va...> - 2014-09-06 15:25:16
|
Author: sewardj
Date: Sat Sep 6 15:25:08 2014
New Revision: 14480
Log:
Avoid a compiler warning about int-to-ptr casting.
Modified:
trunk/mpi/libmpiwrap.c
Modified: trunk/mpi/libmpiwrap.c
==============================================================================
--- trunk/mpi/libmpiwrap.c (original)
+++ trunk/mpi/libmpiwrap.c Sat Sep 6 15:25:08 2014
@@ -152,7 +152,7 @@
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)').
|