X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4c8592e9c995805a8518bf13e990e60ad9f0ed0..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/hashmap.h diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index f1b72a80f8..9a25f8e183 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -467,7 +467,7 @@ inline bool never_grow( size_t, size_t ) { return false; } inline bool never_shrink( size_t, size_t ) { return false; } inline bool grow_lf70( size_t buckets, size_t items ) { - return float(items)/float(buckets) >= 0.85; + return float(items)/float(buckets) >= 0.85f; } #endif // various hash map implementations @@ -689,8 +689,7 @@ public: \ /* count() == 0 | 1 */ \ size_type count( const const_key_type& key ) \ { \ - /* explicit cast needed to suppress CodeWarrior warnings */ \ - return (size_type)(GetNode( key ) ? 1 : 0); \ + return GetNode( key ) ? 1u : 0u; \ } \ }