From f148235ef34b20b1ff5764856b6360ec1f4cb5ab Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 28 May 2003 07:38:36 -0500 Subject: [svn-r6920] Purpose: Bug fix Description: (void *)~((size_t)NULL) on the Cray is a different value than (foo *)~((size_t)NULL) and causes some of the hyperslab algorithms to fail. Solution: Change all the 'void *' forms to 'foo *' forms. Platforms tested: Cray SV1 h5committest not needed. --- src/H5Shyper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/H5Shyper.c b/src/H5Shyper.c index 5866169..0687251 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -774,9 +774,9 @@ H5S_hyper_span_precompute_helper (H5S_hyper_span_info_t *spans, size_t elmt_size assert(spans); /* Check if we've already set this down span tree */ - if(spans->scratch!=(void *)~((size_t)NULL)) { + if(spans->scratch!=(H5S_hyper_span_info_t *)~((size_t)NULL)) { /* Set the tree's scratch pointer */ - spans->scratch=(void *)~((size_t)NULL); + spans->scratch=(H5S_hyper_span_info_t *)~((size_t)NULL); /* Set the scratch pointers in all the nodes */ span=spans->head; @@ -926,7 +926,7 @@ H5S_hyper_copy_span_helper (H5S_hyper_span_info_t *spans) assert(spans); /* Check if the span tree was already copied */ - if(spans->scratch!=NULL && spans->scratch!=(void *)~((size_t)NULL)) { + if(spans->scratch!=NULL && spans->scratch!=(H5S_hyper_span_info_t *)~((size_t)NULL)) { /* Just return the value of the already copied span tree */ ret_value=spans->scratch; -- cgit v0.12