From b77687945e5e0e862509d19ddd459de044d7607c Mon Sep 17 00:00:00 2001 From: Yureka Date: Thu, 10 Oct 2024 18:46:24 +0200 Subject: [PATCH] fix build for 32-bit platforms Change-Id: I113e131eb5c66c42c0bbc60181a7faafc02ca02e --- src/libutil/archive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;