From f1b48c9d548743e6b57dda939b58d7d839cf7b5c Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 8 Jan 2022 02:16:51 +0100 Subject: Fix comparison with wrong field --- include/cxxformat/formatters.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxformat/formatters.hpp b/include/cxxformat/formatters.hpp index c9461e3..e27fc6a 100644 --- a/include/cxxformat/formatters.hpp +++ b/include/cxxformat/formatters.hpp @@ -467,7 +467,7 @@ namespace format { } else { - assert(spec.conversion == 's' || spec.flags.alternative == 'v'); + assert(spec.conversion == 's' || spec.conversion == 'v'); if (s == nullptr) { -- cgit v1.2.3-54-g00ecf