forked from OctaForge/libostd
add support for precision on arg on strings
parent
69b31e439c
commit
60bf265461
|
@ -303,6 +303,7 @@ namespace detail {
|
||||||
assert(false && "cannot format strings with the given spec");
|
assert(false && "cannot format strings with the given spec");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (this->precision) n = this->precision;
|
||||||
octa::Ptrdiff r = n;
|
octa::Ptrdiff r = n;
|
||||||
r += this->write_ws(writer, n, true);
|
r += this->write_ws(writer, n, true);
|
||||||
writer.put_n(val, n);
|
writer.put_n(val, n);
|
||||||
|
|
Loading…
Reference in New Issue