Skip to content

Commit 68481e5

Browse files
committed
Minor cleanup
1 parent 87e7505 commit 68481e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zmij.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,7 @@ ZMIJ_INLINE auto to_decimal_schubfach(UInt bin_sig, int64_t bin_exp,
748748

749749
// The idea of using a single shorter candidate is by Cassio Neri.
750750
// It is less or equal to the upper bound by construction.
751-
long long div10 = (upper >> bound_shift) / 10;
752-
UInt shorter = div10 * 10;
751+
UInt shorter = ((upper >> bound_shift) / 10) * 10;
753752
if ((shorter << bound_shift) >= lower) return {int64_t(shorter), dec_exp};
754753

755754
UInt scaled_sig =

0 commit comments

Comments
 (0)