mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-09 05:34:24 +00:00
Merge pull request #4635
6c23b08 CCoinsKeyHasher::operator() should return size_t (Wladimir J. van der Laan)
This commit is contained in:
commit
f5d99075bf
@ -247,7 +247,10 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
CCoinsKeyHasher();
|
CCoinsKeyHasher();
|
||||||
uint64_t operator()(const uint256& key) const {
|
// This *must* return size_t. With Boost 1.46 on 32-bit systems the
|
||||||
|
// unordered_map will behave unpredictably if the custom hasher returns a
|
||||||
|
// uint64_t, resulting in failures when syncing the chain (#4634).
|
||||||
|
size_t operator()(const uint256& key) const {
|
||||||
return key.GetHash(salt);
|
return key.GetHash(salt);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user