Remove the memmove I accidentally left in, corrupting small numbers

This commit is contained in:
Eric Fischer 2017-08-29 15:43:16 -07:00
parent cef6b022dd
commit 228567364f

View File

@ -356,7 +356,6 @@ inline void Prettify(std::string &buffer, int length, int k) {
else if (-6 < kk && kk <= 0) {
// 1234e-6 -> 0.001234
const int offset = 2 - kk;
memmove(&buffer[offset], &buffer[0], length);
buffer.insert(buffer.begin(), '0');
buffer.insert(buffer.begin() + 1, '.');
for (int i = 2; i < offset; i++)