소스 검색

Fix integer extension

Samuel Thibault 5 년 전
부모
커밋
7b89720f65
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mpi/src/load_balancer/policy/load_heat_propagation.c

+ 2 - 2
mpi/src/load_balancer/policy/load_heat_propagation.c

@@ -29,12 +29,12 @@
 
 static starpu_mpi_tag_t TAG_LOAD(int n)
 {
-	return (n+1) << 24;
+	return ((starpu_mpi_tag_t) n+1) << 24;
 }
 
 static starpu_mpi_tag_t TAG_MOV(int n)
 {
-	return (n+1) << 20;
+	return ((starpu_mpi_tag_t) n+1) << 20;
 }
 
 /* Hash table of local pieces of data that has been moved out of the local MPI