diff --git a/include/fmt/color.h b/include/fmt/color.h index edd8944e..4dbb37d3 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -290,7 +290,7 @@ public: return set_background_color; } FMT_CONSTEXPR_DECL bool has_emphasis() const FMT_NOEXCEPT { - return static_cast(ems); + return static_cast(ems) != 0; } FMT_CONSTEXPR_DECL rgb get_foreground() const FMT_NOEXCEPT { assert(has_foreground() && "no foreground specified for this style");