diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Psimp.c | 2 | ||||
-rw-r--r-- | src/H5T.c | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/H5Psimp.c b/src/H5Psimp.c index c0e0c36..a6ecaf2 100644 --- a/src/H5Psimp.c +++ b/src/H5Psimp.c @@ -89,7 +89,7 @@ H5P_simp_fgath (H5F_t *f, const struct H5O_layout_t *layout, const H5P_number_t *numbering, intn start, intn nelmts, void *buf/*out*/) { - int file_offset[H5O_LAYOUT_NDIMS]; /*offset of slab in file*/ + size_t file_offset[H5O_LAYOUT_NDIMS]; /*offset of slab in file*/ size_t hsize[H5O_LAYOUT_NDIMS]; /*size of hyperslab */ size_t zero[H5O_LAYOUT_NDIMS]; /*zero */ size_t sample[H5O_LAYOUT_NDIMS]; /*hyperslab sampling */ @@ -1,4 +1,5 @@ -/**************************************************************************** +/* + * * NCSA HDF * * Software Development Group * * National Center for Supercomputing Applications * @@ -3238,8 +3239,8 @@ H5T_debug(H5T_t *dt, FILE * stream) break; } - fprintf(stream, "%s%s {nbytes=%d", - s, dt->locked ? "[!]" : "", dt->size); + fprintf(stream, "%s%s {nbytes=%ul", + s, dt->locked ? "[!]" : "", (unsigned long)(dt->size)); if (H5T_is_atomic(dt)) { switch (dt->u.atomic.order) { @@ -3332,8 +3333,8 @@ H5T_debug(H5T_t *dt, FILE * stream) if (dt->u.compnd.memb[i].ndims) { fprintf(stream, "["); for (j = 0; j < dt->u.compnd.memb[i].ndims; j++) { - fprintf(stream, "%s%d", j ? ", " : "", - dt->u.compnd.memb[i].dim[j]); + fprintf(stream, "%s%lu", j ? ", " : "", + (unsigned long)(dt->u.compnd.memb[i].dim[j])); } fprintf(stream, "]"); } |