catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix invalid isspace call detected by PREfast
- Commit
b1dcdc5032f09cab0a5834476d85e999bb608ce6- Author
- Billy Robert O'Neal III ·
- Committer
- Martin Hořeňovský
- Parents
f0e596e2522f
Changes
include/internal/catch_message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_message.cpp b/include/internal/catch_message.cpp index 64c817b7..97983a1e 100644 --- a/include/internal/catch_message.cpp +++ b/include/internal/catch_message.cpp @@ -69,10 +69,10 @@ namespace Catch { Capturer::Capturer( StringRef macroName, SourceLineInfo const& lineInfo, ResultWas::OfType resultType, StringRef names ) { auto trimmed = [&] (size_t start, size_t end) { - while (names[start] == ',' || isspace(names[start])) { + while (names[start] == ',' || isspace(static_cast<unsigned char>(names[start]))) { ++start; } - while (names[end] == ',' || isspace(names[end])) { + while (names[end] == ',' || isspace(static_cast<unsigned char>(names[end]))) { --end; } return names.substr(start, end - start + 1);