You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
811 B

  1. --- a/i18n/decimfmt.cpp
  2. +++ b/i18n/decimfmt.cpp
  3. @@ -1812,7 +1812,7 @@ bool DecimalFormat::fastFormatDouble(double input, UnicodeString& output) const
  4. return false;
  5. }
  6. if (std::isnan(input)
  7. - || std::trunc(input) != input
  8. + || trunc(input) != input
  9. || input <= INT32_MIN
  10. || input > INT32_MAX) {
  11. return false;
  12. --- a/i18n/number_decimalquantity.cpp
  13. +++ b/i18n/number_decimalquantity.cpp
  14. @@ -446,7 +446,7 @@ void DecimalQuantity::_setToDoubleFast(double n) {
  15. for (; i <= -22; i += 22) n /= 1e22;
  16. n /= DOUBLE_MULTIPLIERS[-i];
  17. }
  18. - auto result = static_cast<int64_t>(std::round(n));
  19. + auto result = static_cast<int64_t>(round(n));
  20. if (result != 0) {
  21. _setToLong(result);
  22. scale -= fracLength;