fix bug with bool writing in format

master
Daniel Kolesa 2017-03-04 18:24:18 +01:00
parent 60cc9ee47e
commit d33ca88d0a
1 changed files with 2 additions and 2 deletions

View File

@ -734,9 +734,9 @@ private:
/* bools, check if printing as string, otherwise convert to int */ /* bools, check if printing as string, otherwise convert to int */
if constexpr(std::is_same_v<T, bool>) { if constexpr(std::is_same_v<T, bool>) {
if (spec() == 's') { if (spec() == 's') {
write_val(writer, ("false\0true") + (6 * val)); write_val(writer, escape, ("false\0true") + (6 * val));
} else { } else {
write_val(writer, int(val)); write_val(writer, escape, int(val));
} }
return; return;
} }