瀏覽代碼

fix signedness

Samuel Thibault 7 年之前
父節點
當前提交
f4b8da7ad9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mpi/src/starpu_mpi.c

+ 2 - 2
mpi/src/starpu_mpi.c

@@ -70,7 +70,7 @@ static struct _starpu_mpi_req_prio_list ready_send_requests;
 
 /* The list of detached requests that have already been submitted to MPI */
 static struct _starpu_mpi_req_list detached_requests;
-static int detached_send_nrequests;
+static unsigned detached_send_nrequests;
 static starpu_pthread_mutex_t detached_requests_mutex;
 
 /* Condition to wake up progression thread */
@@ -1453,7 +1453,7 @@ static void *_starpu_mpi_progress_thread_func(void *arg)
 		}
 
 		/* get one recv request */
-		int n = 0;
+		unsigned n = 0;
 		while (!_starpu_mpi_req_list_empty(&ready_recv_requests))
 		{
 			struct _starpu_mpi_req *req;