mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-22 04:18:01 +00:00
Remove the memmove I accidentally left in, corrupting small numbers
This commit is contained in:
parent
cef6b022dd
commit
228567364f
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user