mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[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:
parent
3c16a9a41e
commit
d9d71b06e4
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user