diff --git a/octa/format.hh b/octa/format.hh index ba4f411..871a1c8 100644 --- a/octa/format.hh +++ b/octa/format.hh @@ -303,6 +303,7 @@ namespace detail { assert(false && "cannot format strings with the given spec"); return -1; } + if (this->precision) n = this->precision; octa::Ptrdiff r = n; r += this->write_ws(writer, n, true); writer.put_n(val, n);