mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
FIx MacOS build
This commit is contained in:
parent
70ffcc83d7
commit
93e63f78b3
2 changed files with 5 additions and 5 deletions
|
@ -725,8 +725,8 @@ struct GitSourceAccessor : SourceAccessor
|
|||
}
|
||||
}
|
||||
|
||||
constexpr size_t chunkSize = 128 * 1024; // 128 KiB
|
||||
for (size_t offset = 0; offset < size; offset += chunkSize) {
|
||||
constexpr git_object_size_t chunkSize = 128 * 1024; // 128 KiB
|
||||
for (git_object_size_t offset = 0; offset < size; offset += chunkSize) {
|
||||
sink(std::string((const char *) git_blob_rawcontent(blob.get()) + offset, std::min(chunkSize, size - offset)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue