diff --git a/format.h b/format.h index 98190162..a98a1660 100644 --- a/format.h +++ b/format.h @@ -2773,7 +2773,7 @@ void BasicWriter::write_double( spec.width() > static_cast(n)) { width = spec.width(); CharPtr p = grow_buffer(width); - std::memmove(p + (width - n) / 2, p, n * sizeof(Char)); + std::memmove(get(p) + (width - n) / 2, get(p), n * sizeof(Char)); fill_padding(p, spec.width(), n, fill); return; }