Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit a7e840a

Browse files
lochelOpenModelica-Hudson
authored andcommitted
Fix array allocation
Belonging to [master]: - #2133
1 parent a2e245d commit a7e840a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

SimulationRuntime/c/util/boolean_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void simple_indexed_assign_boolean_array2(const boolean_array_t* source,
307307
void indexed_assign_boolean_array(const boolean_array_t source, boolean_array_t* dest,
308308
const index_spec_t* dest_spec)
309309
{
310-
_index_t* idx_vec1, idx_size;
310+
_index_t *idx_vec1, *idx_size;
311311
int j;
312312
indexed_assign_base_array_size_alloc(&source, dest, dest_spec, &idx_vec1, &idx_size);
313313

SimulationRuntime/c/util/integer_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void simple_indexed_assign_integer_array2(const integer_array_t * source,
302302
void indexed_assign_integer_array(const integer_array_t source, integer_array_t* dest,
303303
const index_spec_t* dest_spec)
304304
{
305-
_index_t* idx_vec1, idx_size;
305+
_index_t *idx_vec1, *idx_size;
306306
int j;
307307
indexed_assign_base_array_size_alloc(&source, dest, dest_spec, &idx_vec1, &idx_size);
308308

SimulationRuntime/c/util/real_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void simple_indexed_assign_real_array2(const real_array_t * source,
279279
void indexed_assign_real_array(const real_array_t source, real_array_t* dest,
280280
const index_spec_t* dest_spec)
281281
{
282-
_index_t* idx_vec1, idx_size;
282+
_index_t *idx_vec1, *idx_size;
283283
int j;
284284
indexed_assign_base_array_size_alloc(&source, dest, dest_spec, &idx_vec1, &idx_size);
285285

SimulationRuntime/c/util/string_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void indexed_assign_string_array(const string_array_t source,
248248
string_array_t* dest,
249249
const index_spec_t* dest_spec)
250250
{
251-
_index_t* idx_vec1, idx_size;
251+
_index_t *idx_vec1, *idx_size;
252252
int j;
253253
indexed_assign_base_array_size_alloc(&source, dest, dest_spec, &idx_vec1, &idx_size);
254254

0 commit comments

Comments
 (0)