From e2fa9d8da4eb8488062803c0568fe52ec2b3a91e Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 27 Aug 2004 13:36:46 -0500 Subject: [svn-r9172] Purpose: "bug fix" sort of. Description: The current mpicc at TG-NCSA recognizes uint64_t but not int64_t. hdf5 code rightly assumes when the unsigned type is defined, the corresponding signed type should be valid too. So, when it detected uint64_t is valid, it went ahead using int64_t which ended in compiling failure. Solution: Changed the detection to check on int64_t instead. This does not change any logic, just goes around the mpicc compiler error at TG-NCSA. Platforms tested: h5committested and tested at TG-NCSA (pp) too. Misc. update: --- src/H5public.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5public.h b/src/H5public.h index 261f580..6226826 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -162,10 +162,10 @@ typedef ssize_t hssize_t; /* * File addresses have there own types. */ -#if H5_SIZEOF_UINT64_T>=8 +#if H5_SIZEOF_INT64_T>=8 typedef uint64_t haddr_t; # define HADDR_UNDEF ((haddr_t)(int64_t)(-1)) -# define H5_SIZEOF_HADDR_T H5_SIZEOF_UINT64_T +# define H5_SIZEOF_HADDR_T H5_SIZEOF_INT64_T # ifdef H5_HAVE_PARALLEL # define HADDR_AS_MPI_TYPE MPI_LONG_LONG_INT # endif /* H5_HAVE_PARALLEL */ -- cgit v0.12