Fix the typo I made in the conversion to std::string

This commit is contained in:
Eric Fischer 2017-08-29 14:58:16 -07:00
parent f9a007e8c3
commit cef6b022dd

View File

@ -358,7 +358,7 @@ inline void Prettify(std::string &buffer, int length, int k) {
const int offset = 2 - kk;
memmove(&buffer[offset], &buffer[0], length);
buffer.insert(buffer.begin(), '0');
buffer.insert(buffer.begin() + 1, '0');
buffer.insert(buffer.begin() + 1, '.');
for (int i = 2; i < offset; i++)
buffer.insert(buffer.begin() + 2, '0');
}