ソースを参照

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)
 {
-	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