From ac11069a97e7c1df7f5f005366a3b9accab4ebda Mon Sep 17 00:00:00 2001 From: aleesposito85 Date: Tue, 6 Oct 2026 13:11:27 +0200 Subject: [PATCH] fix(build): qualify size_t in vmm.hpp (GCC 12 rejects the unqualified name) vmm.hpp only includes and , 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. --- include/strata/core/vmm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).