Ticket #11616: intpatch.patch

File intpatch.patch, 1.7 KB (added by Duncan Paterson <duncan.paterson@…>, 7 years ago)
  • include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp

    From 9269a2e503b430ea1f835c20b69170b38e4d6910 Mon Sep 17 00:00:00 2001
    From: Duncan Paterson <duncan.paterson@particle-analytics.com>
    Date: Fri, 4 Sep 2015 10:48:46 +0100
    Subject: [PATCH] changed variables from size_t to int
    
    ---
     include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 2 +-
     include/boost/spirit/home/qi/numeric/detail/real_impl.hpp     | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp b/include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp
    index 7e96a37..c901f16 100644
    a b namespace boost { namespace spirit { namespace qi { namespace detail  
    312312            char_type;
    313313
    314314            Iterator it = first;
    315             std::size_t leading_zeros = 0;
     315            int leading_zeros = 0;
    316316            if (!Accumulate)
    317317            {
    318318                // skip leading zeros
  • include/boost/spirit/home/qi/numeric/detail/real_impl.hpp

    diff --git a/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp b/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp
    index cf92712..913c771 100644
    a b namespace boost { namespace spirit { namespace traits  
    6565    {
    6666        if (exp >= 0)
    6767        {
    68             std::size_t max_exp = std::numeric_limits<T>::max_exponent10;
     68            int 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!