Skip to content

Commit

Permalink
Avoid implicit type cast from int to bool
Browse files Browse the repository at this point in the history
`blink` is a variable of type `bool`
  • Loading branch information
tobiolo committed Aug 9, 2023
1 parent 991b22d commit e811b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ struct Document {
sw->DoPrepareDC(dc);
ShiftToCenter(dc);
DrawSelect(dc, selected, false, true);
if (reset) blink = 1;
if (reset) blink = true;
else blink = !blink;
DrawSelect(dc, selected, true, true);
#endif
Expand Down

0 comments on commit e811b01

Please sign in to comment.