소스 검색

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

Simon Archipoff 12 년 전
부모
커밋
b50ce6ede9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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[])