From ad731c2c1bc8683b6a5a4e77a0278d76fa2daec8 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 29 Nov 2000 11:52:42 -0500 Subject: [PATCH] [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) --- src/H5Tconv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/H5Tconv.c b/src/H5Tconv.c index c82ed72099..c7316e97b6 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;