Use float instead of double division in wxHashMap code.
We don't need double precision for determining the hash table fill rate and using double constant also results in float-to-double promotion warnings from gcc 4.7. See #14362. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3ceb10b162
commit
4e116788a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user