summaryrefslogtreecommitdiffstats
path: root/src/H5Rint.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-11 17:42:13 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-11 17:42:13 (GMT)
commit555d7a6ce3731fb27e67fed692196a38a77c8d62 (patch)
treea6309eba0df7be428aa5fce7ce3e40670f0dfda4 /src/H5Rint.c
parent3eef4d575ebd23eeb54660e244e604e0159a0aec (diff)
downloadhdf5-555d7a6ce3731fb27e67fed692196a38a77c8d62.zip
hdf5-555d7a6ce3731fb27e67fed692196a38a77c8d62.tar.gz
hdf5-555d7a6ce3731fb27e67fed692196a38a77c8d62.tar.bz2
Fix 2010 compile issue
Diffstat (limited to 'src/H5Rint.c')
-rw-r--r--src/H5Rint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Rint.c b/src/H5Rint.c
index 9879865..90f8249 100644
--- a/src/H5Rint.c
+++ b/src/H5Rint.c
@@ -1170,8 +1170,8 @@ H5R__encode_region(H5S_t *space, unsigned char *buf, size_t *nalloc)
/* Don't encode if buffer size isn't big enough or buffer is empty */
if(buf && *nalloc >= ((size_t)buf_size + 2 * H5_SIZEOF_UINT32_T)) {
- p = (uint8_t *)buf;
int rank;
+ p = (uint8_t *)buf;
/* Encode the size for safety check */
UINT32ENCODE(p, (uint32_t)buf_size);