diff options
Diffstat (limited to 'tools/lib/h5tools_type.c')
-rw-r--r-- | tools/lib/h5tools_type.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/lib/h5tools_type.c b/tools/lib/h5tools_type.c index 7e9f6f7..c5e7472 100644 --- a/tools/lib/h5tools_type.c +++ b/tools/lib/h5tools_type.c @@ -55,7 +55,9 @@ h5tools_get_little_endian_type(hid_t tid) break; case H5T_FLOAT: - if (size == 4) + if (size == 2) + p_type = H5Tcopy(H5T_IEEE_F16LE); + else if (size == 4) p_type = H5Tcopy(H5T_IEEE_F32LE); else if (size == 8) p_type = H5Tcopy(H5T_IEEE_F64LE); @@ -134,7 +136,9 @@ h5tools_get_big_endian_type(hid_t tid) break; case H5T_FLOAT: - if (size == 4) + if (size == 2) + p_type = H5Tcopy(H5T_IEEE_F16BE); + else if (size == 4) p_type = H5Tcopy(H5T_IEEE_F32BE); else if (size == 8) p_type = H5Tcopy(H5T_IEEE_F64BE); |