Ticket #12226: fix.diff

File fix.diff, 1.1 KB (added by Sergey Polsky <fatman@…>, 6 years ago)

Possible solution

  • include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp

     include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp b/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
    index 2ce7b74..49c444f 100644
    a b namespace boost { namespace spirit { namespace traits  
    6868            typedef unsignedtype type;                                        \
    6969            static type call(signedtype n)                                    \
    7070            {                                                                 \
    71                 return (n >= 0) ? n : (unsignedtype)(-n);                     \
     71                return unsignedtype((n >= 0) ? n : (-n));                     \
    7272            }                                                                 \
    7373        }                                                                     \
    7474    /**/