diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2022-04-01 20:41:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 20:41:26 (GMT) |
commit | 572adbaacb126e530f6af94a90092e004c23a163 (patch) | |
tree | 1fc09f3d565a05a93800a5c4a9eefe582d03d8b0 /src/H5HGprivate.h | |
parent | 210e0d91d158ea80e6d76d5656b2b467d0d1a9e6 (diff) | |
download | hdf5-572adbaacb126e530f6af94a90092e004c23a163.zip hdf5-572adbaacb126e530f6af94a90092e004c23a163.tar.gz hdf5-572adbaacb126e530f6af94a90092e004c23a163.tar.bz2 |
Assume C99 fixed sized ints exist, use them (#470) (#1571)
* Committing clang-format changes
* Assume C99 fixed sized ints exist, use them
* Assume H5_SIZEOF_LONG_DOUBLE != 0, `long double` has existed since C89
Note, this is only assuming that `long double` exists, no assumptions about its size have been touched. Didn't remove any code that does things like test if `long double` and `double` have different sizes.
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean McBride <sean@rogue-research.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5HGprivate.h')
-rw-r--r-- | src/H5HGprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5HGprivate.h b/src/H5HGprivate.h index d8e6b46..5deae88 100644 --- a/src/H5HGprivate.h +++ b/src/H5HGprivate.h @@ -50,7 +50,7 @@ typedef struct H5HG_heap_t H5HG_heap_t; /* Size of encoded global heap ID */ /* (size of file address + 32-bit integer) */ -#define H5HG_HEAP_ID_SIZE(F) ((size_t)H5F_SIZEOF_ADDR(F) + H5_SIZEOF_UINT32_T) +#define H5HG_HEAP_ID_SIZE(F) ((size_t)H5F_SIZEOF_ADDR(F) + sizeof(uint32_t)) /* Main global heap routines */ H5_DLL herr_t H5HG_insert(H5F_t *f, size_t size, const void *obj, H5HG_t *hobj /*out*/); |