summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-04-05 17:43:15 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-04-05 17:43:15 (GMT)
commitdf31d147e09945e498080c3331ddd59332d62ff9 (patch)
tree062cc77795297120747cfc21fd94959c9c1d1fe5
parent81a128e5deb0ec7dfad6a22934d7f3d044d338d8 (diff)
downloadhdf5-df31d147e09945e498080c3331ddd59332d62ff9.zip
hdf5-df31d147e09945e498080c3331ddd59332d62ff9.tar.gz
hdf5-df31d147e09945e498080c3331ddd59332d62ff9.tar.bz2
[svn-r13591] Problem:
4294967296LL is not supported by older C like Windows VC6. Solution: /* use <= 2**32 -1 to stay within 4 bytes integer range */ HDassert(chunk0_size <= 4294967295UL); Platforms tested: kelgia, copper and osage.
-rw-r--r--src/H5Ocache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Ocache.c b/src/H5Ocache.c
index 41a0bbf..75f9d69 100644
--- a/src/H5Ocache.c
+++ b/src/H5Ocache.c
@@ -739,7 +739,8 @@ H5O_assert(oh);
break;
case 2: /* 4 byte size */
- HDassert(chunk0_size < 4294967296LL);
+ /* use <= 2**32 -1 to stay within 4 bytes integer range */
+ HDassert(chunk0_size <= 4294967295UL);
UINT32ENCODE(p, chunk0_size);
break;