Browse Source

combined_worker.c : fix compar_int function. return a > b; => return a - b;

Simon Archipoff 12 years ago
parent
commit
b50ce6ede9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/combined_workers.c

+ 1 - 1
src/core/combined_workers.c

@@ -34,7 +34,7 @@ static int compar_int(const void *pa, const void *pb)
 	int a = *((int *)pa);
 	int b = *((int *)pb);
 
-	return a > b;
+	return a - b;
 }
 
 static void sort_workerid_array(int nworkers, int workerid_array[])