fix(build): qualify size_t in vmm.hpp (GCC 12 rejects the unqualified name)

vmm.hpp only includes <cstdint> and <vector>, so the unqualified size_t is not
declared on toolchains that do not expose ::size_t through those headers
(GCC 12.2, Debian 12). Qualify it as std::size_t, as expert_cache.hpp does.
This commit is contained in:
aleesposito85 authored and Niko1221 committed 2026-10-06 14:17:54 +02:00
1 parent 7b7f1a57c4
commit ac11069a97
1 file changed
+1 -1
+1 -1
View File
@@ -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).