summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-12-14 00:36:09 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-12-14 00:36:09 (GMT)
commit496207675ded905fa1e6c88dce0e9828ac754d92 (patch)
treeb538968750f96540d859a8b72c2ec1776ebe09f0
parent8653f01910c1c69f7f7b45ce31f937c07f041187 (diff)
downloadhdf5-496207675ded905fa1e6c88dce0e9828ac754d92.zip
hdf5-496207675ded905fa1e6c88dce0e9828ac754d92.tar.gz
hdf5-496207675ded905fa1e6c88dce0e9828ac754d92.tar.bz2
[svn-r3134] Purpose:
Bug Fix Description: Floating point format string is incorrect. Solution: Changed "g" -> "%g" Platforms tested: Cray J90 (killeen)
-rw-r--r--tools/h5tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index 978f30b..c55c138 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -712,7 +712,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
h5dump_str_append(str, OPT(info->fmt_double, "%g"), tempdouble);
} else if (H5Tequal(type, H5T_NATIVE_FLOAT)) {
memcpy(&tempfloat, vp, sizeof(float));
- h5dump_str_append(str, OPT(info->fmt_double, "g"), tempfloat);
+ h5dump_str_append(str, OPT(info->fmt_float, "%g"), tempfloat);
} else if (info->ascii && (H5Tequal(type, H5T_NATIVE_SCHAR) ||
H5Tequal(type, H5T_NATIVE_UCHAR))) {
if (ESCAPE_HTML == info->str_locale) {