diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-14 00:54:07 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-14 00:54:07 (GMT) |
commit | d07377a897e3219f7ba2bef4aadd7028dc9c7ef4 (patch) | |
tree | 4a9227e4dde8a0d96cf230a45627082684349830 /tools | |
parent | cd7098f1b6ce49efa85245aa78cc0e2255c4065e (diff) | |
download | hdf5-d07377a897e3219f7ba2bef4aadd7028dc9c7ef4.zip hdf5-d07377a897e3219f7ba2bef4aadd7028dc9c7ef4.tar.gz hdf5-d07377a897e3219f7ba2bef4aadd7028dc9c7ef4.tar.bz2 |
[svn-r3136] Purpose:
Bug Fix
Description:
Moved check for float type ahead of double type, since they are the same
size on Crays..
Platforms tested:
Cray J90 (killeen)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5tools.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c index ed2ec14..125c87f 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -707,12 +707,12 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info, for (i = 0; i < n; i++) h5dump_str_append(str, OPT(info->fmt_raw, "%02x"), ucp_vp[i]); - } else if (H5Tequal(type, H5T_NATIVE_DOUBLE)) { - memcpy(&tempdouble, vp, sizeof(double)); - 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_float, "%g"), tempfloat); + } else if (H5Tequal(type, H5T_NATIVE_DOUBLE)) { + memcpy(&tempdouble, vp, sizeof(double)); + h5dump_str_append(str, OPT(info->fmt_double, "%g"), tempdouble); } else if (info->ascii && (H5Tequal(type, H5T_NATIVE_SCHAR) || H5Tequal(type, H5T_NATIVE_UCHAR))) { if (ESCAPE_HTML == info->str_locale) { |