aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index 3fc5de8c..d8ff7038 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -176,11 +176,11 @@ static double get_wavelength(struct hdfile *f)
int hdf5_read(struct hdfile *f, struct image *image)
{
herr_t r;
- int16_t *buf;
+ float *buf;
buf = malloc(sizeof(float)*f->nx*f->ny);
- r = H5Dread(f->dh, H5T_NATIVE_INT16, H5S_ALL, H5S_ALL,
+ r = H5Dread(f->dh, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL,
H5P_DEFAULT, buf);
if ( r < 0 ) {
ERROR("Couldn't read data\n");