From 1b96e8029985fd82664c06866802ee33800b3414 Mon Sep 17 00:00:00 2001 From: Nicolas Lesser Date: Thu, 6 Dec 2018 15:12:27 +0100 Subject: [PATCH] Attempt to fix gcc 4.4 bot. --- include/fmt/color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");