Ticket #952: hash-warning2.patch

File hash-warning2.patch, 1.0 KB (added by Daniel James, 15 years ago)

Fixes a mistake in the first patch.

  • hash.hpp

    RCS file: /cvsroot/boost/boost/boost/functional/hash/hash.hpp,v
    retrieving revision 1.27.2.8
    diff -u -r1.27.2.8 hash.hpp
     
    4646    std::size_t hash_value(long);
    4747    std::size_t hash_value(unsigned long);
    4848
    49 #if BOOST_HAS_LONG_LONG && defined(_M_X64) && defined(_WIN64)
     49#if defined(BOOST_HAS_LONG_LONG) && defined(_M_X64) && defined(_WIN64)
    5050    // On 64-bit windows std::size_t is a typedef for unsigned long long, which
    5151    // isn't due to be supported until Boost 1.35. So add support here.
    5252    // (Technically, Boost.Hash isn't actually documented as supporting
     
    122122        return static_cast<std::size_t>(v);
    123123    }
    124124
    125 #if BOOST_HAS_LONG_LONG && defined(_M_X64) && defined(_WIN64)
     125#if defined(BOOST_HAS_LONG_LONG) && defined(_M_X64) && defined(_WIN64)
    126126    inline std::size_t hash_value(long long v)
    127127    {
    128128        return v;