summaryrefslogtreecommitdiff
path: root/dev-libs/spdlog/files/spdlog-1.6.1-tests-fix.patch
blob: 8a6aa8020f7dad2ed2576db999431c3939b7c662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h
index e974cf51..5393dcac 100644
--- a/include/spdlog/fmt/bin_to_hex.h
+++ b/include/spdlog/fmt/bin_to_hex.h
@@ -92,7 +92,7 @@ struct formatter<spdlog::details::dump_info<T>>
     auto parse(ParseContext &ctx) -> decltype(ctx.begin())
     {
         auto it = ctx.begin();
-        while (*it && *it != '}')
+        while (it != ctx.end() && *it != '}')
         {
             switch (*it)
             {