D5086: churn: remove redundant round()
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sat Oct 13 15:38:58 UTC 2018
yuja added a comment.
> def charnum(count):
>
> - return int(round(count * width // maxcount)) + return int(count * width // maxcount)
We're doing floating-point division as `maxcount` is float.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5086
To: durin42, #hg-reviewers, pulkit
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list