From 8e2e4d40343936747a291ce209aeace9e2934d69 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 12 Feb 2022 09:26:48 -0800 Subject: [PATCH] Suppress a gcc warning --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 5ce1cb47..ffc2ff3d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2282,7 +2282,7 @@ FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end, FMT_ASSERT(begin != end, ""); auto align = align::none; auto p = begin + code_point_length(begin); - if (p >= end) p = begin; + if (end - p <= 0) p = begin; for (;;) { switch (to_ascii(*p)) { case '<':