Skip to content

Commit f39d022

Browse files
committed
use (bool) instead of static cast
1 parent 22b476f commit f39d022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/highlighters.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ UniquePtr<Highlighter> create_column_highlighter(HighlighterParameters params, H
534534
auto positionals = parser.positionals_from(0);
535535

536536
auto ruler = parser.get_switch("ruler");
537-
bool highlight_non_blank = static_cast<bool>(ruler);
537+
bool highlight_non_blank = (bool)ruler;
538538
auto col_char = ruler.value_or(" ").str();
539539
if (col_char.char_length() > 1)
540540
throw runtime_error("-ruler expects a single character");

0 commit comments

Comments
 (0)