diff options
Diffstat (limited to 'src/H5Osdspace.c')
-rw-r--r-- | src/H5Osdspace.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Osdspace.c b/src/H5Osdspace.c index e3ec4b0..83702eb 100644 --- a/src/H5Osdspace.c +++ b/src/H5Osdspace.c @@ -140,7 +140,7 @@ H5O__sdspace_decode(H5F_t *f, H5O_t H5_ATTR_UNUSED *open_oh, unsigned H5_ATTR_UN /* Get or determine the type of the extent */ if (version >= H5O_SDSPACE_VERSION_2) { sdim->type = (H5S_class_t)*p++; - if(sdim->type != H5S_SIMPLE && sdim->rank > 0) + if (sdim->type != H5S_SIMPLE && sdim->rank > 0) HGOTO_ERROR(H5E_OHDR, H5E_BADVALUE, NULL, "invalid rank for scalar or NULL dataspace") } /* end if */ else { @@ -252,16 +252,16 @@ H5O__sdspace_encode(H5F_t *f, uint8_t *p, const void *_mesg) } /* end else */ /* Encode dataspace dimensions for simple dataspaces */ - if(H5S_SIMPLE == sdim->type) { + if (H5S_SIMPLE == sdim->type) { /* Encode current & maximum dimensions */ - if(sdim->rank > 0) { - for(u = 0; u < sdim->rank; u++) + if (sdim->rank > 0) { + for (u = 0; u < sdim->rank; u++) H5F_ENCODE_LENGTH(f, p, sdim->size[u]); - if(flags & H5S_VALID_MAX) - for(u = 0; u < sdim->rank; u++) + if (flags & H5S_VALID_MAX) + for (u = 0; u < sdim->rank; u++) H5F_ENCODE_LENGTH(f, p, sdim->max[u]); } /* end if */ - } /* end if */ + } /* end if */ FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5O__sdspace_encode() */ |