diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-29 16:52:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-29 16:52:42 (GMT) |
commit | ad731c2c1bc8683b6a5a4e77a0278d76fa2daec8 (patch) | |
tree | b869101a9ad3536325d093f0050bea9da5649205 | |
parent | 5c25be11a293fc6458278b4cc41795046ac7d438 (diff) | |
download | hdf5-ad731c2c1bc8683b6a5a4e77a0278d76fa2daec8.zip hdf5-ad731c2c1bc8683b6a5a4e77a0278d76fa2daec8.tar.gz hdf5-ad731c2c1bc8683b6a5a4e77a0278d76fa2daec8.tar.bz2 |
[svn-r3019] Purpose:
Patch on the patch of my code cleanup... :-)
Description:
Fix compiler problems with previous code patching...
Platforms tested:
Linux 2.2.16-3smp (eirene)
-rw-r--r-- | src/H5Tconv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index c82ed72..c7316e9 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -361,16 +361,16 @@ H5FL_BLK_DEFINE_STATIC(vlen_seq); /* Print alignment statistics */ # define CI_PRINT_STATS(STYPE,DTYPE) { \ - if (H5DEBUG(T) && cdata->priv->s_aligned) { \ + if (H5DEBUG(T) && ((H5T_conv_hw_t *)cdata->priv)->s_aligned) { \ HDfprintf(H5DEBUG(T), \ " %Hu src elements aligned on %lu-byte boundaries\n", \ - cdata->priv->s_aligned, \ + ((H5T_conv_hw_t *)cdata->priv)->s_aligned, \ (unsigned long)H5T_NATIVE_##STYPE##_ALIGN_g); \ } \ - if (H5DEBUG(T) && cdata->priv->d_aligned) { \ + if (H5DEBUG(T) && ((H5T_conv_hw_t *)cdata->priv)->d_aligned) { \ HDfprintf(H5DEBUG(T), \ " %Hu dst elements aligned on %lu-byte boundaries\n", \ - cdata->priv->d_aligned, \ + ((H5T_conv_hw_t *)cdata->priv)->d_aligned, \ (unsigned long)H5T_NATIVE_##DTYPE##_ALIGN_g); \ } \ } @@ -388,10 +388,10 @@ H5FL_BLK_DEFINE_STATIC(vlen_seq); cdata->priv = H5MM_xfree(cdata->priv); /* Increment source alignment counter */ -# define CI_INC_SRC(s) if (s) cdata->priv->s_aligned += nelmts; +# define CI_INC_SRC(s) if (s) ((H5T_conv_hw_t *)cdata->priv)->s_aligned += nelmts; /* Increment destination alignment counter */ -# define CI_INC_DST(d) if (d) cdata->priv->d_aligned += nelmts; +# define CI_INC_DST(d) if (d) ((H5T_conv_hw_t *)cdata->priv)->d_aligned += nelmts; #else # define CI_PRINT_STATS(STYPE,DTYPE) /*void*/ # define CI_ALLOC_PRIV cdata->priv=NULL; |