Change behavior of a couple truncating divisions to rounding.
Both of these locations are approximating a higher-precision number with a lower one for human consumption, so rounding produces the least error. (In practice the difference won't be noticed; the more desirable effect of this change is to use explicit safe float->int conversions.) Bug: 1104532 Change-Id: I2173e7848778c99f9eb629870bc0c5383d5cb263 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2293630 Auto-Submit: Peter Kasting <pkasting@chromium.org> Commit-Queue: Ahmed Fakhry <afakhry@chromium.org> Reviewed-by:Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#787932}
Showing
Please register or sign in to comment