Skip to content

Commit 06bc09e

Browse files
committed
int64 wrap is unnecessary
1 parent 17e5f3b commit 06bc09e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bar_filler_bar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (s *bFiller) Fill(w io.Writer, width int, stat decor.Statistics) {
167167
}
168168

169169
if stat.Refill > 0 && curWidth > 0 {
170-
refWidth = int(internal.PercentageRound(stat.Total, int64(stat.Refill), width))
170+
refWidth = int(internal.PercentageRound(stat.Total, stat.Refill, width))
171171
if refWidth > curWidth {
172172
refWidth = curWidth
173173
}

0 commit comments

Comments
 (0)