Ticket #11614: real_impl.hpp.patch

File real_impl.hpp.patch, 934 bytes (added by Tobias Reh <treh@…>, 7 years ago)
  • ./boost_1_59_0/boost/spirit/home/qi/numeric/detail/real_impl.hpp

     
    6565    {
    6666        if (exp >= 0)
    6767        {
    68             std::size_t max_exp = std::numeric_limits<T>::max_exponent10;
     68            int const max_exp = std::numeric_limits<T>::max_exponent10;
    6969           
    7070            // return false if exp exceeds the max_exp
    7171            // do this check only for primitive types!
     
    7777        {
    7878            if (exp < std::numeric_limits<T>::min_exponent10)
    7979            {
    80                 int min_exp = std::numeric_limits<T>::min_exponent10;
     80                int const min_exp = std::numeric_limits<T>::min_exponent10;
    8181                detail::compensate_roundoff(n, acc_n);
    8282                n /= pow10<T>(-min_exp);
    8383