From d33ca88d0a6f4dab4b173d04f7205fd5b76557c7 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 4 Mar 2017 18:24:18 +0100 Subject: [PATCH] fix bug with bool writing in format --- ostd/format.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostd/format.hh b/ostd/format.hh index d23d694..53a2239 100644 --- a/ostd/format.hh +++ b/ostd/format.hh @@ -734,9 +734,9 @@ private: /* bools, check if printing as string, otherwise convert to int */ if constexpr(std::is_same_v) { if (spec() == 's') { - write_val(writer, ("false\0true") + (6 * val)); + write_val(writer, escape, ("false\0true") + (6 * val)); } else { - write_val(writer, int(val)); + write_val(writer, escape, int(val)); } return; }