mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Inline Hash::init()
This commit is contained in:
parent
d63a5ded76
commit
c8c4bcf90e
2 changed files with 2 additions and 4 deletions
|
@ -27,7 +27,7 @@ static size_t regularHashSize(HashType type) {
|
|||
abort();
|
||||
}
|
||||
|
||||
void Hash::init()
|
||||
Hash::Hash(HashType type) : type(type)
|
||||
{
|
||||
hashSize = regularHashSize(type);
|
||||
assert(hashSize <= maxHashSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue