Skip to content

Commit

Permalink
Remove call to min
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24330 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 30, 2015
1 parent f2969f9 commit ca48d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/runtime/System_omc.c
Expand Up @@ -780,7 +780,7 @@ extern void* System_launchParallelTasks(threadData_t *threadData, int numThreads
commands[i] = MMC_CAR(dataLst);
status[i] = 0; /* just in case */
}
numThreads = min(numThreads,len);
numThreads = numThreads > len ? numThreads: len;
for (i=0; i<numThreads; i++) {
GC_pthread_create(&th[i],NULL,System_launchParallelTasksThread,&data);
}
Expand Down

0 comments on commit ca48d9a

Please sign in to comment.