/* Quicksort is called with a pointer to the array to be sorted and an integer indicating its length. */
static
voidquick_sort(double*array,intarray_length)
voidquick_sort(double*array,size_tarray_length)
{
inti,j;
size_ti,j;
doubletemp;
if(array_length<2)return;
...
...
@@ -57,14 +57,14 @@ void quick_sort(double * array, int array_length)
/* Quicksort is called with a pointer to the array of center points to be sorted and an integer indicating its length. It sorts the array by its longitude coordinates */
@@ -432,7 +432,7 @@ void verify_grid(int gridtype, int gridsize, int gridno, int ngrids, int ncorner
This is first done for the presumed center point of the cell and then for all the corners of the cell. LLtoXYZ is defined in clipping/geometry.h
*/
for(intcell_no=0;cell_no<gridsize;cell_no++)
for(size_tcell_no=0;cell_no<gridsize;cell_no++)
{
/* Conversion of center point spherical coordinates to Cartesian coordinates. */
...
...
@@ -479,7 +479,7 @@ void verify_grid(int gridtype, int gridsize, int gridno, int ngrids, int ncorner
if(actual_number_of_corners<3)
{
if(cdoVerbose)
fprintf(stdout,"Less than three vertices found in cell no %u. This cell is considered degenerate and will be omitted from further computation!\n",cell_no+1);
fprintf(stdout,"Less than three vertices found in cell no %zu. This cell is considered degenerate and will be omitted from further computation!\n",cell_no+1);
continue;
}
...
...
@@ -499,7 +499,7 @@ void verify_grid(int gridtype, int gridsize, int gridno, int ngrids, int ncorner
@@ -532,7 +532,7 @@ void verify_grid(int gridtype, int gridsize, int gridno, int ngrids, int ncorner
if(actual_number_of_corners<3)
{
if(cdoVerbose)
fprintf(stdout,"Less than three vertices found in cell no %u. This cell is considered degenerate and will be omitted from further computation!\n",cell_no+1);
fprintf(stdout,"Less than three vertices found in cell no %zu. This cell is considered degenerate and will be omitted from further computation!\n",cell_no+1);
continue;
}
...
...
@@ -624,7 +624,7 @@ void verify_grid(int gridtype, int gridsize, int gridno, int ngrids, int ncorner