aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-10-05 11:34:19 +0200
committerThomas White <taw@physics.org>2015-10-05 11:34:41 +0200
commit9fe6fa361f3fd5f6579437caa38b79bb23cf510a (patch)
tree7db0104a97e927fb9d9ad6e0fae324d12570427f /libcrystfel/src
parentd09471162b5eef05b063907bc48e6a8cc41ffcf4 (diff)
Read integers from HDF5 properly
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/hdf5-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index 8a7a46b7..bd0124fd 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -1173,8 +1173,8 @@ static int get_scalar_value(struct hdfile *f, const char *name, void *val,
type = H5Dget_type(dh);
class = H5Tget_class(type);
- if ( class != H5T_FLOAT ) {
- ERROR("Not a floating point value.\n");
+ if ( (class != H5T_FLOAT) && (class != H5T_INTEGER) ) {
+ ERROR("Not a floating point or integer value.\n");
H5Tclose(type);
H5Dclose(dh);
return 1;