Explorar o código

Fix undefined behaviour.

Terry Cojean %!s(int64=10) %!d(string=hai) anos
pai
achega
b8f115ad5d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/util/starpu_clusters_create.c

+ 1 - 1
src/util/starpu_clusters_create.c

@@ -472,7 +472,7 @@ int _starpu_cluster_analyze_parameters(struct _starpu_cluster_parameters *params
 					cpu_loss = npus%j;
 					second_best = j;
 				}
-				j = params->prefere_min? j++:j--;
+				j = params->prefere_min? j+1:j-1;
 			}
 
 			if (best)