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

Commit 092ac38

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Fix for RHEL/GCC not compiling in C99 mode
1 parent dfebc07 commit 092ac38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimulationRuntime/c/util/read_matlab4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,12 @@ int omc_matlab4_val(double *res, ModelicaMatReader *reader, ModelicaMatVariable_
810810

811811
int omc_matlab4_read_vars_val(double *res, ModelicaMatReader *reader, ModelicaMatVariable_t **vars, int N, double time){
812812
double w1,w2,y1,y2;
813-
int i1,i2;
813+
int i,i1,i2;
814814
if(time > omc_matlab4_stopTime(reader)) return 1;
815815
if(time < omc_matlab4_startTime(reader)) return 1;
816816
if(!omc_matlab4_read_vals(reader,1)) return 1;
817817
find_closest_points(time, reader->vars[0], reader->nrows, &i1, &w1, &i2, &w2);
818-
for (int i = 0; i< N; i++){
818+
for (i = 0; i< N; i++){
819819
if(vars[i]->isParam) {
820820
if(vars[i]->index < 0)
821821
res[i] = -reader->params[abs(vars[i]->index)-1];

0 commit comments

Comments
 (0)