diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-12-19 18:14:26 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-12-19 18:14:26 (GMT) |
commit | f2344833726caadaec1e26404549cb1d445c85cc (patch) | |
tree | e39f226c7eb0688202733146f793e5c1880d6ece /tools/h5dump | |
parent | d4946be1f210ec189296c7e10167f2deffca87fc (diff) | |
download | hdf5-f2344833726caadaec1e26404549cb1d445c85cc.zip hdf5-f2344833726caadaec1e26404549cb1d445c85cc.tar.gz hdf5-f2344833726caadaec1e26404549cb1d445c85cc.tar.bz2 |
[svn-r13076]
fix for bugzilla bug #551
several programming errors contributed to this bug
1) the parsing of subsetting was using atoi to convert the parameter to an int,
which caused problems for numbers greater that int. Substitute with atof
2) several index counters were declared as int, use hsize_t instead
3) the numerical format passed for printf was %lu, defined one compatible with
hsize_t instead (unsigned long long)
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 97644bf..fbe7c75 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -96,6 +96,7 @@ static int xml_name_to_XID(const char *, char *, int , int ); static void init_prefix(char **prfx, size_t prfx_len); static void add_prefix(char **prfx, size_t *prfx_len, const char *name); + static h5tool_format_t dataformat = { 0, /*raw */ @@ -2116,7 +2117,7 @@ dump_data(hid_t obj_id, int obj_data, struct subset_t *sset, int display_index) outputformat->pindex=display_index; if (outputformat->pindex) { outputformat->idx_fmt = "(%s): "; - outputformat->idx_n_fmt = "%lu"; + outputformat->idx_n_fmt = HSIZE_T_FORMAT; outputformat->idx_sep = ","; outputformat->line_pre = "%s"; } |