From 50c19fad17ec559f8736813b8fa18545f3fb856f Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 10 Mar 2026 11:53:45 -0400 Subject: [PATCH] init --- tests/long_test.cpp | 2 +- tests/string_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/long_test.cpp b/tests/long_test.cpp index 40539ef..feab4d0 100644 --- a/tests/long_test.cpp +++ b/tests/long_test.cpp @@ -22,7 +22,7 @@ template bool test() { char const *begin = input.data(); char const *end = input.data() + input.size(); for (size_t i = 0; i < answers.size(); i++) { - T result_value; + T result_value = 0; while ((begin < end) && (std::isspace(*begin))) { begin++; } diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 68828ac..69d2a31 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -98,7 +98,7 @@ template bool test() { char const *begin = input.data(); char const *end = input.data() + input.size(); for (size_t i = 0; i < answers.size(); i++) { - T result_value; + T result_value = 0; while ((begin < end) && (std::isspace(*begin))) { begin++; }