summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-08-27 18:36:46 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-08-27 18:36:46 (GMT)
commite2fa9d8da4eb8488062803c0568fe52ec2b3a91e (patch)
tree212d275726a494e40242cb57f6033a01e947825b
parent875f492181aa9e6e59661d0e679ca8e6c7a4f95c (diff)
downloadhdf5-e2fa9d8da4eb8488062803c0568fe52ec2b3a91e.zip
hdf5-e2fa9d8da4eb8488062803c0568fe52ec2b3a91e.tar.gz
hdf5-e2fa9d8da4eb8488062803c0568fe52ec2b3a91e.tar.bz2
[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:
-rw-r--r--src/H5public.h4
1 files 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 */