Skip to content
Snippets Groups Projects
Commit b7422960 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Fix size_t conversions in app.

parent d9a0b43f
No related branches found
No related tags found
No related merge requests found
......@@ -899,7 +899,7 @@ int main(int argc, char *argv[])
}
if ( vlistNumber(vlistID1) != CDI_REAL ) datasize *= 2;
data = (double *) malloc(datasize*sizeof(double));
data = (double *) malloc((size_t)datasize * sizeof (double));
/*
nts = cdiInqTimeSize(streamID1);
......
......@@ -303,8 +303,8 @@ void printGridInfo(int vlistID)
int i;
double *xvals, *yvals;
double xfirst, xlast, yfirst, ylast;
xvals = (double*) malloc(gridsize*sizeof(double));
yvals = (double*) malloc(gridsize*sizeof(double));
xvals = (double *)malloc((size_t)gridsize * sizeof (double));
yvals = (double *)malloc((size_t)gridsize * sizeof (double));
gridInqXvals(gridID, xvals);
gridInqYvals(gridID, yvals);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment