Changeset 9201:296ebc9e84da in orange


Ignore:
Timestamp:
11/11/11 18:14:17 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
3ec21e90cf57b17dbed478a3a304a370d50f7293
Message:

Fixed m_element_hash function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/hclust.cpp

    r9031 r9201  
    621621    { 
    622622        size_t seed = 0; 
    623         hash_combine(seed, (size_t &) m.cluster); 
    624         hash_combine(seed, (size_t &) m.left); 
    625         hash_combine(seed, (size_t &) m.right); 
     623        hash_combine(seed, (size_t) m.cluster); 
     624        hash_combine(seed, (size_t) m.left); 
     625        hash_combine(seed, (size_t) m.right); 
    626626        return seed; 
    627627    } 
    628628 
    629629    // more or less taken from boost::hash_combine 
    630     inline void hash_combine(size_t &seed, size_t &val) const 
     630    inline void hash_combine(size_t &seed, size_t val) const 
    631631    { 
    632632        seed ^= val + 0x9e3779b9 + (seed << 6) + (seed >> 2); 
     
    693693    return minimum; 
    694694} 
    695  
    696695 
    697696struct CompareByScores 
Note: See TracChangeset for help on using the changeset viewer.