diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-02 19:51:41 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-02 19:51:41 -0500 |
commit | f7eede23de6f78b2b33b477b2b4c5451141825d5 (patch) | |
tree | d698a92272b8e4a8428b82d9a21f3e98ed267a6d /source/fud_string.cpp | |
parent | 32c722d50943bbdeba65a77d5e94f8692cf75f3c (diff) |
Add setup for coverage and cppcheck.
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) { |