@@ -269,15 +269,15 @@ caf_runtime_error (const char *message, ...)
269269/* being used, we could add something of the form "#ifdef _CMAKE" to remove the */
270270/* keyword only when building with CMake */
271271/* inline */ void locking_atomic_op (MPI_Win win , int * value , int newval ,
272- int compare , int image_index , int index )
272+ int compare , int image_index , size_t index )
273273{
274274 CAF_Win_lock (MPI_LOCK_EXCLUSIVE , image_index - 1 , win );
275275 MPI_Compare_and_swap (& newval ,& compare ,value , MPI_INT ,image_index - 1 ,
276276 index * sizeof (int ), win );
277277 CAF_Win_unlock (image_index - 1 , win );
278278}
279279
280- void mutex_lock (MPI_Win win , int image_index , int index , int * stat ,
280+ void mutex_lock (MPI_Win win , int image_index , size_t index , int * stat ,
281281 int * acquired_lock , char * errmsg , int errmsg_len )
282282{
283283 const char msg [] = "Already locked" ;
@@ -326,7 +326,7 @@ void mutex_lock(MPI_Win win, int image_index, int index, int *stat,
326326#endif // MPI_VERSION
327327}
328328
329- void mutex_unlock (MPI_Win win , int image_index , int index , int * stat ,
329+ void mutex_unlock (MPI_Win win , int image_index , size_t index , int * stat ,
330330 char * errmsg , int errmsg_len )
331331{
332332 const char msg [] = "Variable is not locked" ;
0 commit comments