diff options
Diffstat (limited to 'source/fud_string.cpp')
-rw-r--r-- | source/fud_string.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |