summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-26 20:15:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-26 20:15:47 (GMT)
commit4bb0d2d2997063e233095f9303c47b3a6fbebf36 (patch)
tree26ad895a50be2099f322b732a843330635b11a11 /src/H5Odtype.c
parent6f8d95297d47d6fd247de56d238c374409523b39 (diff)
downloadhdf5-4bb0d2d2997063e233095f9303c47b3a6fbebf36.zip
hdf5-4bb0d2d2997063e233095f9303c47b3a6fbebf36.tar.gz
hdf5-4bb0d2d2997063e233095f9303c47b3a6fbebf36.tar.bz2
[svn-r7415] Purpose:
Code cleanup Description: Clean up some of the code for writing out dataspace and datatype information. Platforms tested: FreeBSD 4.8 (sleipnir) too small to need h5committest
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 98f2bc0..1e70ff9 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -649,9 +649,9 @@ H5O_dtype_encode_helper(uint8_t **pp, const H5T_t *dt)
*(*pp)++ = 0;
/* Reserved */
- *(*pp)++ = '\0';
- *(*pp)++ = '\0';
- *(*pp)++ = '\0';
+ *(*pp)++ = 0;
+ *(*pp)++ = 0;
+ *(*pp)++ = 0;
/* Dimension permutation */
UINT32ENCODE(*pp, 0);
@@ -767,6 +767,7 @@ H5O_dtype_encode_helper(uint8_t **pp, const H5T_t *dt)
break;
}
+ /* Encode the type's class, version and bit field */
*hdr++ = ((unsigned)(dt->type) & 0x0f) | (((dt->type==H5T_COMPOUND && dt->u.compnd.has_array) ? H5O_DTYPE_VERSION_UPDATED : H5O_DTYPE_VERSION_COMPAT )<<4);
*hdr++ = (flags >> 0) & 0xff;
*hdr++ = (flags >> 8) & 0xff;