summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-07-07 19:10:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-07-07 19:10:01 (GMT)
commita67faf317232fc0cc5ea7c4074ae879e51c04636 (patch)
tree3ac9a3a18a64a5ddb4ea284f90932eded8aad5dd /src/H5A.c
parent27fa4c698f3d07e5e9e7655943526bbdf2b4a2ec (diff)
downloadhdf5-a67faf317232fc0cc5ea7c4074ae879e51c04636.zip
hdf5-a67faf317232fc0cc5ea7c4074ae879e51c04636.tar.gz
hdf5-a67faf317232fc0cc5ea7c4074ae879e51c04636.tar.bz2
[svn-r458] Changed H5Sget_npoints call to H5Sextent_npoints and H5Sselect_npoints calls.
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 81d6200..0d97803 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -263,7 +263,7 @@ H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type,
/* Compute the internal sizes */
attr->dt_size=(H5O_DTYPE[0].raw_size)(attr->ent.file,type);
attr->ds_size=(H5O_SDSPACE[0].raw_size)(attr->ent.file,&(space->extent.u.simple));
- attr->data_size=H5S_get_npoints(space)*H5T_get_size(type);
+ attr->data_size=H5S_extent_npoints(space)*H5T_get_size(type);
/* Hold the symbol table entry (and file) open */
if (H5O_open(&(attr->ent)) < 0) {
@@ -668,7 +668,7 @@ H5A_write(H5A_t *attr, const H5T_t *mem_type, void *buf)
assert(buf);
/* Create buffer for data to store on disk */
- nelmts=H5S_get_npoints (attr->ds);
+ nelmts=H5S_extent_npoints (attr->ds);
/* Get the memory and file datatype sizes */
src_type_size = H5T_get_size(mem_type);
@@ -838,7 +838,7 @@ H5A_read(H5A_t *attr, const H5T_t *mem_type, void *buf)
assert(buf);
/* Create buffer for data to store on disk */
- nelmts=H5S_get_npoints (attr->ds);
+ nelmts=H5S_extent_npoints (attr->ds);
/* Get the memory and file datatype sizes */
src_type_size = H5T_get_size(attr->dt);