aboutsummaryrefslogtreecommitdiff
path: root/boot/evaluator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'boot/evaluator.cc')
-rw-r--r--boot/evaluator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/evaluator.cc b/boot/evaluator.cc
index 77a56ad..4b37668 100644
--- a/boot/evaluator.cc
+++ b/boot/evaluator.cc
@@ -186,7 +186,7 @@ namespace elna::boot
return std::visit([](auto value) -> std::optional<constant_value> {
using T = std::decay_t<decltype(value)>;
- if constexpr (std::is_integral_v<T>)
+ if constexpr (std::is_integral_v<T> && !std::is_same_v<T, bool>)
{
return constant_value{ ~value };
}