Commit 6076de50 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

pipeReadPipeRecord: changed type of datasize to size_t.

parent 24fbb09c
...@@ -920,6 +920,7 @@ void print_system_info() ...@@ -920,6 +920,7 @@ void print_system_info()
#endif #endif
fprintf(stderr, "\n"); fprintf(stderr, "\n");
fprintf(stderr, "sizeof(size_t) = %zu\n", sizeof(size_t));
fprintf(stderr, "mem alignment = %d\n\n", getMemAlignment()); fprintf(stderr, "mem alignment = %d\n\n", getMemAlignment());
#if defined(HAVE_MMAP) #if defined(HAVE_MMAP)
......
...@@ -407,7 +407,7 @@ pipe_t::pipeReadPipeRecord(double *p_data, int vlistID, size_t *p_nmiss) ...@@ -407,7 +407,7 @@ pipe_t::pipeReadPipeRecord(double *p_data, int vlistID, size_t *p_nmiss)
if (!p_data) if (!p_data)
Error("No data pointer for %s", name.c_str()); Error("No data pointer for %s", name.c_str());
int datasize = gridInqSize(vlistInqVarGrid(vlistID, varID)); size_t datasize = gridInqSize(vlistInqVarGrid(vlistID, varID));
nvals += datasize; nvals += datasize;
if (vlistNumber(vlistID) != CDI_REAL) if (vlistNumber(vlistID) != CDI_REAL)
datasize *= 2; datasize *= 2;
......
Markdown is supported
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