瀏覽代碼

Fix integer extension

Samuel Thibault 4 年之前
父節點
當前提交
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)
 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)
 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
 /* Hash table of local pieces of data that has been moved out of the local MPI