aboutsummaryrefslogtreecommitdiff
path: root/zenstore/compactcas.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenstore/compactcas.h')
-rw-r--r--zenstore/compactcas.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenstore/compactcas.h b/zenstore/compactcas.h
index dd3385de3..01cfffa52 100644
--- a/zenstore/compactcas.h
+++ b/zenstore/compactcas.h
@@ -55,8 +55,8 @@ private:
inline void Init(uint32_t BlockIndex, uint64_t Offset, uint64_t Size)
{
- ZEN_ASSERT(BlockIndex < (1L << 20));
- ZEN_ASSERT(Offset < (1L << 28));
+ ZEN_ASSERT(BlockIndex <= MaxBlockIndex);
+ ZEN_ASSERT(Offset <= MaxOffset);
ZEN_ASSERT(Size <= std::numeric_limits<std::uint32_t>::max());
m_Size = static_cast<uint32_t>(Size);