Skip to content

Commit

Permalink
more bget fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Sep 15, 2020
1 parent c992327 commit 668bdd3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clib/pio_darray.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ PIOc_write_darray(int ncid, int varid, int ioid, PIO_Offset arraylen, void *arra
if (!wmb)
{
/* Allocate a buffer. */
if (!(wmb = malloc((bufsize)sizeof(wmulti_buffer))))
if (!(wmb = malloc(sizeof(wmulti_buffer))))
return pio_err(ios, file, PIO_ENOMEM, __FILE__, __LINE__);

/* Set pointer to newly allocated buffer and initialize.*/
Expand Down
2 changes: 1 addition & 1 deletion src/clib/pio_darray_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
extern PIO_Offset pio_buffer_size_limit;

/** Initial size of compute buffer. */
bufsize pio_cnbuffer_limit = 33554432;
long pio_cnbuffer_limit = 33554432;

/** Global buffer pool pointer. */
extern void *CN_bpool;
Expand Down
1 change: 0 additions & 1 deletion src/clib/pio_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <config.h>
#include <pio.h>
#include <pio_error.h>
#include <bget.h>
#include <limits.h>
#include <math.h>
#include <netcdf.h>
Expand Down

0 comments on commit 668bdd3

Please sign in to comment.