Skip to content

Commit

Permalink
Fix MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 6, 2015
1 parent 98c1f76 commit a26af2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2772,7 +2772,7 @@ void BasicWriter<Char>::write_double(
if (spec.align() == ALIGN_CENTER &&
spec.width() > static_cast<unsigned>(n)) {
width = spec.width();
CharPtr p = grow_buffer(width);
Char *p = get(grow_buffer(width));
std::memmove(p + (width - n) / 2, p, n * sizeof(Char));
fill_padding(p, spec.width(), n, fill);
return;
Expand Down

0 comments on commit a26af2b

Please sign in to comment.