summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-11-13 17:03:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-11-13 17:03:59 (GMT)
commit6c603f3e77454df4f3dc24e0ca1327d9017bbf67 (patch)
treefc6d2068753e3ee98da47e0b173e2f256a11afd2 /tools/h5tools.c
parent8ea1fc564f3686d14f30ccf00a0d7079473d3830 (diff)
downloadhdf5-6c603f3e77454df4f3dc24e0ca1327d9017bbf67.zip
hdf5-6c603f3e77454df4f3dc24e0ca1327d9017bbf67.tar.gz
hdf5-6c603f3e77454df4f3dc24e0ca1327d9017bbf67.tar.bz2
[svn-r2875] Purpose:
Code cleanup Description: Eliminated some warnings on O2K platform. Platforms tested: SGI O2K (modi4)
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index 34a00a5..d826283 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -247,7 +247,7 @@ h5dump_str_append(h5dump_str_t *str/*in,out*/, const char *fmt, ...)
while (1) {
size_t avail = str->nalloc - str->len;
- size_t nchars = HDvsnprintf(str->s+str->len, avail, fmt, ap);
+ size_t nchars = (size_t)HDvsnprintf(str->s+str->len, avail, fmt, ap);
if (nchars < avail) {
/* success */
@@ -1533,8 +1533,8 @@ h5dump_simple_dset(FILE *stream, const h5dump_t *info, hid_t dset,
return -1;
/* Print the data */
- flags = ((elmtno == 0 ? START_OF_DATA : 0) |
- ((elmtno + hs_nelmts) >= p_nelmts ? END_OF_DATA : 0));
+ flags = (((elmtno == 0) ? START_OF_DATA : 0) |
+ (((elmtno + hs_nelmts) >= p_nelmts) ? END_OF_DATA : 0));
h5dump_simple_data(stream, info, dset, &ctx, flags, hs_nelmts,
p_type, sm_buf);