diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2000-12-06 04:59:37 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2000-12-06 04:59:37 (GMT) |
commit | 7df8cd5cfe22372f603ea058334647fe4017008e (patch) | |
tree | 65c9aa77f54e3ab55c980800b677f837b9ace72b /c++/src/H5AtomType.h | |
parent | 71722c1b9b0ec0af088606a651f7ce0a492c08a2 (diff) | |
download | hdf5-7df8cd5cfe22372f603ea058334647fe4017008e.zip hdf5-7df8cd5cfe22372f603ea058334647fe4017008e.tar.gz hdf5-7df8cd5cfe22372f603ea058334647fe4017008e.tar.bz2 |
[svn-r3079] Purpose: bug fix - by C API
Description:
The prototype of two C API functions, H5Tget_offset and
H5Sget_simple_extent_npoints was changed to fix bug #446,
resulting in the need for updating the two corresponding
C++ API functions.
Solution:
- Changed the return type of AtomType::getOffset from size_t
to int, and the error return value from 0 to -1.
- Changed the return type of DataSpace::getSimpleExtentNpoints
from hsize_t to hssize_t, and the error value from 0 to -1.
Platforms tested:
arabica (sparc-sun-solaris 2.7)
Diffstat (limited to 'c++/src/H5AtomType.h')
-rw-r--r-- | c++/src/H5AtomType.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c++/src/H5AtomType.h b/c++/src/H5AtomType.h index 165cbf5..14834c3 100644 --- a/c++/src/H5AtomType.h +++ b/c++/src/H5AtomType.h @@ -25,7 +25,8 @@ class AtomType : public DataType { void setPrecision( size_t precision ) const; // Retrieves the bit offset of the first significant bit. - size_t getOffset() const; + // 12/05/00 - changed return type to int from size_t - C API + int getOffset() const; // Sets the bit offset of the first significant bit. void setOffset( size_t offset ) const; |