summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;