Skip to content

Commit

Permalink
- ANSI C an unnamed C compiler said :)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15889 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Apr 23, 2013
1 parent 4d37fb2 commit 2a3e488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimulationRuntime/c/util/memory_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ void clear_current_state(void)
void* alloc_elements(int n, int sz)
{
_index_t start,nelem;
int ix = 0;
assert(n>=0);
int ix = get_thread_index();
ix = get_thread_index();
start = current_states[ix].current_state.offset;
nelem = (((n * sz)+(sizeof(int)-1))/sizeof(int));
assert(nelem <= NR_ELEMENTS);
Expand Down

0 comments on commit 2a3e488

Please sign in to comment.