diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2022-04-07 04:49:00 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2022-04-07 04:49:00 (GMT) |
commit | 91a5eb2cd9fef54b13402e2a11e10ce98f8a3d1f (patch) | |
tree | 1ca4bfd929700b0743a3ecc653262e836e6436f2 /src/H5Oattribute.c | |
parent | 9f2b38bb61df6136d214cb7ab248f73d1ff9458c (diff) | |
download | hdf5-91a5eb2cd9fef54b13402e2a11e10ce98f8a3d1f.zip hdf5-91a5eb2cd9fef54b13402e2a11e10ce98f8a3d1f.tar.gz hdf5-91a5eb2cd9fef54b13402e2a11e10ce98f8a3d1f.tar.bz2 |
Commit codespell spelling corrections.
Diffstat (limited to 'src/H5Oattribute.c')
-rw-r--r-- | src/H5Oattribute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c index b21a654..371bbbc 100644 --- a/src/H5Oattribute.c +++ b/src/H5Oattribute.c @@ -239,19 +239,19 @@ H5O__attr_create(const H5O_loc_t *loc, H5A_t *attr) /* Check if switching to "dense" attribute storage is possible */ if (!H5F_addr_defined(ainfo.fheap_addr)) { - htri_t sharable; /* Whether the attribute will be shared */ + htri_t shareable; /* Whether the attribute will be shared */ size_t raw_size = 0; /* Raw size of message */ - /* Check for attribute being sharable */ - if ((sharable = H5SM_can_share(loc->file, NULL, NULL, H5O_ATTR_ID, attr)) < 0) + /* Check for attribute being shareable */ + if ((shareable = H5SM_can_share(loc->file, NULL, NULL, H5O_ATTR_ID, attr)) < 0) HGOTO_ERROR(H5E_ATTR, H5E_BADMESG, FAIL, "can't determine attribute sharing status") - else if (sharable == FALSE) { + else if (shareable == FALSE) { /* Compute the size needed to encode the attribute */ raw_size = (H5O_MSG_ATTR->raw_size)(loc->file, FALSE, attr); } /* end if */ /* Check for condititions for switching to "dense" attribute storage are met */ - if (ainfo.nattrs == oh->max_compact || (!sharable && raw_size >= H5O_MESG_MAX_SIZE)) { + if (ainfo.nattrs == oh->max_compact || (!shareable && raw_size >= H5O_MESG_MAX_SIZE)) { H5O_iter_cvt_t udata; /* User data for callback */ H5O_mesg_operator_t op; /* Wrapper for operator */ |