Skip to content

Commit

Permalink
changed type of num_elems from size_t to PIO_Offset
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 6, 2016
1 parent 8a640f3 commit 5d0d400
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/clib/pio_get_nc_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int PIOc_get_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
int ndims; /** The number of dimensions in the variable. */
int *dimids; /** The IDs of the dimensions for this variable. */
PIO_Offset typelen; /** Size (in bytes) of the data type of data in buf. */
size_t num_elem = 1; /** Number of data elements in the buffer. */
PIO_Offset num_elem = 1; /** Number of data elements in the buffer. */
int bcast = false;

LOG((1, "PIOc_get_vars_tc ncid = %d varid = %d start = %d count = %d "
Expand Down
4 changes: 2 additions & 2 deletions src/clib/pio_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ int put_vars_handler(iosystem_desc_t *ios)
PIO_Offset *startp = NULL, *countp = NULL, *stridep = NULL;
int ndims; /** Number of dimensions. */
void *buf; /** Buffer for data storage. */
size_t num_elem; /** Number of data elements in the buffer. */
PIO_Offset num_elem; /** Number of data elements in the buffer. */

LOG((1, "put_vars_handler"));

Expand Down Expand Up @@ -758,7 +758,7 @@ int get_vars_handler(iosystem_desc_t *ios)
PIO_Offset *startp = NULL, *countp = NULL, *stridep = NULL;
int ndims; /** Number of dimensions. */
void *buf; /** Buffer for data storage. */
size_t num_elem; /** Number of data elements in the buffer. */
PIO_Offset num_elem; /** Number of data elements in the buffer. */

LOG((1, "get_vars_handler"));

Expand Down
2 changes: 1 addition & 1 deletion src/clib/pio_put_nc_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int PIOc_put_vars_tc(int ncid, int varid, const PIO_Offset *start, const PIO_Off
int ndims; /** The number of dimensions in the variable. */
int *dimids; /** The IDs of the dimensions for this variable. */
PIO_Offset typelen; /** Size (in bytes) of the data type of data in buf. */
size_t num_elem = 1; /** Number of data elements in the buffer. */
PIO_Offset num_elem = 1; /** Number of data elements in the buffer. */
var_desc_t *vdesc;
PIO_Offset usage;
int *request;
Expand Down

0 comments on commit 5d0d400

Please sign in to comment.