[svn-r4107]
Purpose:
Bug fix
Description:
One of the function calls (H5Sget_simple_extent_dims) used parameter with
the wrong type. That caused compilation errors on T3E.
Solution:
Used NULL since that argument is optional and was never used.
Platforms tested:
T3E(mcurie) and IRIX64 (modi4)
This commit is contained in:
@@ -38,7 +38,6 @@ int ReadHDF(BYTE** data ,
|
||||
hid_t pal_set; /* dataset for palette */
|
||||
hid_t pal_space;/* dataspace for palette */
|
||||
hsize_t datasize; /* size of the image */
|
||||
hsize_t maxdims; /* dummy */
|
||||
int pal_exist = 0; /* do we have a palette? */
|
||||
|
||||
/* check stuff */
|
||||
@@ -72,7 +71,7 @@ int ReadHDF(BYTE** data ,
|
||||
}
|
||||
|
||||
/* get the dimension size of the image */
|
||||
if (H5Sget_simple_extent_dims(dspace , image_size , &maxdims) !=2 ) {
|
||||
if (H5Sget_simple_extent_dims(dspace , image_size , NULL) !=2 ) {
|
||||
fprintf(stderr , "Unable to get dimension info\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user