diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index 225483804..1a2173c8d 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -227,7 +227,7 @@ static Generator parseObject(Source & source, const Path & path) while (left) { checkInterrupt(); - auto n = std::min(buf.size(), left); + auto n = size_t(std::min(buf.size(), left)); source(buf.data(), n); co_yield std::span{buf.data(), n}; left -= n;