Ignore:
Timestamp:
06/13/15 21:51:27 (10 years ago)
Author:
epyon
Message:
  • cleanups of clang warnings (gotta love them all)
  • only nv-core for now (this will take a while for the whole source)
  • mainly C++ casts instead of C-style casts, but also a few bugs fixed!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/container/hash_table_policy.hh

    r401 r402  
    279279                static uint32 get_bucket_count( uint32 element_count, float load_factor )
    280280                {
    281                         uint32 min_count = (uint32)( element_count / load_factor );
     281                        uint32 min_count = static_cast<uint32>( element_count / load_factor );
    282282                        return get_prime_larger_or_equal_to( min_count );
    283283                }
    284284                static uint32 is_rehash_required( uint32 bucket_count, uint32 element_count, float load_factor )
    285285                {
    286                         uint32 min_count = (uint32)( element_count / load_factor );
     286                        uint32 min_count = static_cast<uint32>( element_count / load_factor );
    287287                        if ( bucket_count < 2 || min_count > bucket_count )
    288288                        {
Note: See TracChangeset for help on using the changeset viewer.