From ee5b8a97b9b6cbd0c22ee5555091b0094092d450 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Mon, 10 Nov 2025 12:02:36 +0100 Subject: [PATCH] rtlil: avoid clang warning --- kernel/rtlil.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/rtlil.h b/kernel/rtlil.h index f81cba38c..79cc73e45 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -1415,10 +1415,7 @@ public: return chunk_vector.size(); } int size() const { - int result = 0; - for (const SigChunk &_: *this) - ++result; - return result; + return std::distance(begin(), end()); } const SigChunk &at(int index) { ensure_chunk_vector();