Ticket #9517: gil_channel_algorithm.patch

File gil_channel_algorithm.patch, 692 bytes (added by frederic.bron@…, 5 years ago)

patch

  • include/boost/gil/channel_algorithm.hpp

    diff --git a/include/boost/gil/channel_algorithm.hpp b/include/boost/gil/channel_algorithm.hpp
    index 1361219..957dd52 100644
    a b template <typename SrcChannelV, typename DstChannelV, bool SrcLessThanDst, bool  
    5151
    5252
    5353template <typename UnsignedIntegralChannel>
    54 struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,-1> {};
     54struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,static_cast<UnsignedIntegralChannel>(-1)> {};
    5555
    5656template <>
    5757struct unsigned_integral_max_value<uint8_t> : public mpl::integral_c<uint32_t,0xFF> {};