diff --git a/helpers/memenv/memenv.cc b/helpers/memenv/memenv.cc index ee7abd4..43b009d 100644 --- a/helpers/memenv/memenv.cc +++ b/helpers/memenv/memenv.cc @@ -6,6 +6,7 @@ #include +#include #include #include #include @@ -65,7 +66,7 @@ class FileState { return Status::OK(); } - assert(offset / kBlockSize <= SIZE_MAX); + assert(offset / kBlockSize <= std::numeric_limits::max()); size_t block = static_cast(offset / kBlockSize); size_t block_offset = offset % kBlockSize;