forked from lix-project/lix
Merge "fix build for 32-bit platforms" into main
This commit is contained in:
commit
b020d1fc27
|
@ -227,7 +227,7 @@ static Generator<Entry> parseObject(Source & source, const Path & path)
|
||||||
|
|
||||||
while (left) {
|
while (left) {
|
||||||
checkInterrupt();
|
checkInterrupt();
|
||||||
auto n = std::min<uint64_t>(buf.size(), left);
|
auto n = size_t(std::min<uint64_t>(buf.size(), left));
|
||||||
source(buf.data(), n);
|
source(buf.data(), n);
|
||||||
co_yield std::span{buf.data(), n};
|
co_yield std::span{buf.data(), n};
|
||||||
left -= n;
|
left -= n;
|
||||||
|
|
Loading…
Reference in a new issue