From f7eede23de6f78b2b33b477b2b4c5451141825d5 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 2 Oct 2024 19:51:41 -0500 Subject: Add setup for coverage and cppcheck. --- source/fud_string.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/fud_string.cpp') diff --git a/source/fud_string.cpp b/source/fud_string.cpp index 10352ad..4cffb60 100644 --- a/source/fud_string.cpp +++ b/source/fud_string.cpp @@ -357,12 +357,12 @@ FudStatus String::append(StringView source) return FudStatus::Aliased; } - const auto newLength = length() + source.length(); + const size_t newLength = length() + source.length(); if (newLength < length()) { return FudStatus::OperationInvalid; } - const auto newSize = newLength + 1; - if (newSize < newLength) { + const size_t newSize = newLength + 1; // cppcheck-suppress knownConditionTrueFalse + if (newSize < newLength) { // cppcheck-suppress knownConditionTrueFalse return FudStatus::OperationInvalid; } if (newSize >= m_capacity) { -- cgit v1.2.3