From 5f2f343b8faf666635e1e509c73df974489dc6d5 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sat, 11 May 2024 23:45:01 +0300 Subject: [PATCH] Fix false positive redundantAssignment warnings --- src/parser/ComponentRepeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/ComponentRepeat.cpp b/src/parser/ComponentRepeat.cpp index 78277108..a6c55dbd 100644 --- a/src/parser/ComponentRepeat.cpp +++ b/src/parser/ComponentRepeat.cpp @@ -132,7 +132,7 @@ void ComponentRepeat::notePositions(GlushkovBuildState &bs) { posFirst = bs.getBuilder().numVertices(); sub_comp->notePositions(bs); - u32 copies = m_max < NoLimit ? m_max : MAX(m_min, 1); + u32 copies = (m_max < NoLimit) ? m_max : std::max(m_min, 1U); DEBUG_PRINTF("building %u copies of repeated region\n", copies); m_firsts.clear(); m_lasts.clear();