From ab028c9d7a42936e344e81bb4d9972a729ef8d24 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 15 Mar 2026 20:12:18 +0300 Subject: [PATCH] Hard-code size of bool as 1 just in case --- libs/types/source/type.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/types/source/type.cpp b/libs/types/source/type.cpp index 2c52a09..b660953 100644 --- a/libs/types/source/type.cpp +++ b/libs/types/source/type.cpp @@ -139,6 +139,9 @@ namespace pslang::types { return std::visit([](primitive_type_base const &) -> std::size_t { + // Just in case, check for bool explicitly + if constexpr (std::is_same_v) + return 1; if constexpr (std::is_same_v) return 2; return sizeof(T);