mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 09:00:38 +08:00
Merge pull request #209 from jendrikseipp/patch-1
Allow compiling with -Wfloat-conversion
This commit is contained in:
Vendored
+1
-1
@@ -1806,7 +1806,7 @@ public:
|
||||
|
||||
size_t bucket_count() const { return capacity_; }
|
||||
float load_factor() const {
|
||||
return capacity_ ? static_cast<double>(size()) / capacity_ : 0.0;
|
||||
return capacity_ ? static_cast<float>(static_cast<double>(size()) / capacity_) : 0.0f;
|
||||
}
|
||||
float max_load_factor() const { return 1.0f; }
|
||||
void max_load_factor(float) {
|
||||
|
||||
Reference in New Issue
Block a user