From dafba203e7c3ac7e13f82648869b78566d8151ab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Jan 2021 16:37:50 +0100 Subject: util/ForeignFifoBuffer: use `auto` --- src/util/ForeignFifoBuffer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util/ForeignFifoBuffer.hxx b/src/util/ForeignFifoBuffer.hxx index d6912d3c2..65f6bce94 100644 --- a/src/util/ForeignFifoBuffer.hxx +++ b/src/util/ForeignFifoBuffer.hxx @@ -235,7 +235,7 @@ public: w = Write(); } - size_t n = std::min(r.size, w.size); + const auto n = std::min(r.size, w.size); std::move(r.data, r.data + n, w.data); Append(n); -- cgit v1.2.3