Skip to content

Commit

Permalink
No reason to call remove_compact; just call remove
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed May 7, 2024
1 parent 0d273a1 commit 7962a9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/dragonbox/dragonbox_to_chars.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,10 @@ namespace jkj {
}
if (br.is_nonzero()) {
JKJ_IF_CONSTEVAL {
auto result = to_decimal_ex(s, exponent_bits, policy::sign::ignore,
policy::trailing_zero::remove_compact,
DecimalToBinaryRoundingPolicy{},
BinaryToDecimalRoundingPolicy{}, CachePolicy{},
PreferredIntegerTypesPolicy{});
auto result = to_decimal_ex(
s, exponent_bits, policy::sign::ignore, policy::trailing_zero::remove,
DecimalToBinaryRoundingPolicy{}, BinaryToDecimalRoundingPolicy{},
CachePolicy{}, PreferredIntegerTypesPolicy{});

return to_chars_naive<typename FormatTraits::format>(
result.significand, result.exponent, buffer);
Expand Down

0 comments on commit 7962a9a

Please sign in to comment.