Skip to content
Snippets Groups Projects

Compilation fixes for Windows

Merged Guillaume Pasero requested to merge windows-comp into master
7 files
+ 89
67
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -377,9 +377,9 @@ namespace otb
unsigned int nbLine = static_cast<unsigned int>(outputRegionForThreadSize[1]);
unsigned int firstLine = static_cast<unsigned int>(outputRegionForThread.GetIndex()[1]+this->GetOutput()->GetOrigin()[1]);
double outRange[nbCol*nbLine];
double outAzi[nbCol*nbLine];
int outNbContribution[nbCol*nbLine];
double *outRange = new double[nbCol*nbLine];
double *outAzi = new double[nbCol*nbLine];
int *outNbContribution = new int[nbCol*nbLine];
// Initialize arrays
memset(outRange, 0., nbCol*nbLine*sizeof(double));
@@ -476,7 +476,9 @@ namespace otb
OutIt.NextLine();
++counterLine;
}
delete [] outRange;
delete [] outAzi;
delete [] outNbContribution;
}
} /*namespace otb*/
Loading