Skip to content

Commit

Permalink
Logic fix
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24337 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 30, 2015
1 parent 6013e6f commit 83e9f56
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 = numThreads > len ? numThreads: len;
numThreads = numThreads > len ? len : numThreads;
for (i=0; i<numThreads; i++) {
GC_pthread_create(&th[i],NULL,System_launchParallelTasksThread,&data);
}
Expand Down

0 comments on commit 83e9f56

Please sign in to comment.