mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
fix couple warnings, use stable version ofg googletest
This commit is contained in:
Vendored
+2
-2
@@ -3184,8 +3184,8 @@ public:
|
||||
}
|
||||
|
||||
float load_factor() const {
|
||||
size_t capacity = bucket_count();
|
||||
return capacity ? static_cast<float>(static_cast<double>(size()) / capacity) : 0;
|
||||
size_t _capacity = bucket_count();
|
||||
return _capacity ? static_cast<float>(static_cast<double>(size()) / _capacity) : 0;
|
||||
}
|
||||
|
||||
float max_load_factor() const { return 1.0f; }
|
||||
|
||||
Reference in New Issue
Block a user