Skip to content

Commit

Permalink
fix gcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
powercoderlol committed Jan 21, 2021
1 parent 200a4a0 commit 26af23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2344,7 +2344,7 @@ class arg_formatter_base {
}

FMT_CONSTEXPR iterator operator()(bool value) {
if (specs_ && specs_->type != 0 && specs_->type != 's')
if (specs_ && specs_->type && specs_->type != 's')
return (*this)(value ? 1 : 0);
write(value != 0);
return out_;
Expand Down

0 comments on commit 26af23e

Please sign in to comment.