summaryrefslogtreecommitdiffstats
path: root/tools/gifconv/readhdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gifconv/readhdf.c')
-rw-r--r--tools/gifconv/readhdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gifconv/readhdf.c b/tools/gifconv/readhdf.c
index 08258de..f1a3a39 100644
--- a/tools/gifconv/readhdf.c
+++ b/tools/gifconv/readhdf.c
@@ -72,7 +72,7 @@ int ReadHDF(BYTE** data, BYTE palette[256][3], hsize_t *image_size,
}
/* get the dimension size of the image */
- if (H5Sget_simple_extent_dims(dspace , image_size , NULL) !=2 ) {
+ if (H5Sget_simple_extent_dims(dspace , image_size , NULL) <0 ) {
fprintf(stderr , "Unable to get dimension info\n");
return -1;
}