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);