Browse Source

Fix integer extension

Samuel Thibault 4 years ago
parent
commit
7b89720f65
1 changed files with 2 additions and 2 deletions
  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