diff --git a/include/strata/core/vmm.hpp b/include/strata/core/vmm.hpp index 0c9f816b..d8bcf0b5 100644 --- a/include/strata/core/vmm.hpp +++ b/include/strata/core/vmm.hpp @@ -33,7 +33,7 @@ public: void release(); uint8_t* base() const { return (uint8_t*) (uintptr_t) base_; } int64_t chunks() const { return (int64_t) h_.size(); } - bool mapped(int64_t i) const { return i >= 0 && i < chunks() && h_[(size_t) i] != 0; } + bool mapped(int64_t i) const { return i >= 0 && i < chunks() && h_[(std::size_t) i] != 0; } int64_t mapped_count() const; /// Maps chunks [lo, hi) that are not mapped yet, each to `take()` or, when that returns 0, to a new chunk. /// Readable and writable when it returns; false: out of memory (what was mapped stays mapped).