Commit c29b2e5b authored by Johan Richard's avatar Johan Richard
Browse files

Compatibility with older compilers

parent ebfcdea9
......@@ -579,12 +579,13 @@ static void cl_connectdots(int verbose)
float currentdist,distmin,disttest;
struct biline zpos,currentpos;
int pos,minpos,iline;
int i;
iline=1;
currentpos=tangent[1]; // start with the first two points
for(int i=2;i<ntline;i++)
for(i=2;i<ntline;i++)
{
if(tangent[i].i==1) // start a new line
{
......@@ -627,7 +628,7 @@ static void cl_connectdots(int verbose)
currentpos=radial[1]; // start with the first two points
for(int i=2;i<nrline;i++)
for(i=2;i<nrline;i++)
{
if(radial[i].i==1) // start a new line
{
......
......@@ -62,7 +62,7 @@ void zonemult()
dlsds = dratio(lens[0].z, CL.cz[0]);
line = (struct point **)malloc(NLMAX*sizeof(struct point *));
for (int i=0;i<NLMAX;i++)
for (i=0;i<NLMAX;i++)
line[i]= (struct point *)malloc(NPOINT*sizeof(struct point));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment