mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 22:12:43 +01:00
Drop obsolete assert and cast
This commit is contained in:
parent
6a47629530
commit
77dceb2844
1 changed files with 1 additions and 2 deletions
|
|
@ -88,9 +88,8 @@ struct NarAccessor : public SourceAccessor
|
||||||
|
|
||||||
void preallocateContents(uint64_t size) override
|
void preallocateContents(uint64_t size) override
|
||||||
{
|
{
|
||||||
assert(size <= std::numeric_limits<uint64_t>::max());
|
|
||||||
auto & st = parents.top()->stat;
|
auto & st = parents.top()->stat;
|
||||||
st.fileSize = (uint64_t) size;
|
st.fileSize = size;
|
||||||
st.narOffset = pos;
|
st.narOffset = pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue