Attempt to fix gcc 4.4 bot.

This commit is contained in:
Nicolas Lesser 2018-12-06 15:12:27 +01:00
parent 1819e88e84
commit 1b96e80299
No known key found for this signature in database
GPG Key ID: 55F9BC675F85A2DF

View File

@ -290,7 +290,7 @@ public:
return set_background_color;
}
FMT_CONSTEXPR_DECL bool has_emphasis() const FMT_NOEXCEPT {
return static_cast<uint8_t>(ems);
return static_cast<uint8_t>(ems) != 0;
}
FMT_CONSTEXPR_DECL rgb get_foreground() const FMT_NOEXCEPT {
assert(has_foreground() && "no foreground specified for this style");