mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 05:08:45 +08:00
Fix bug
This commit is contained in:
@@ -9,7 +9,7 @@ size_t hash_map_get_next_cap(size_t cap) {
|
||||
}
|
||||
|
||||
std::function<size_t(size_t)> hash_map_linear_probing(size_t interval) {
|
||||
return std::function([interval](size_t i) {
|
||||
return std::function<size_t(size_t)>([interval](size_t i) {
|
||||
return i * interval;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user