mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +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) {
|
else if (-6 < kk && kk <= 0) {
|
||||||
// 1234e-6 -> 0.001234
|
// 1234e-6 -> 0.001234
|
||||||
const int offset = 2 - kk;
|
const int offset = 2 - kk;
|
||||||
memmove(&buffer[offset], &buffer[0], length);
|
|
||||||
buffer.insert(buffer.begin(), '0');
|
buffer.insert(buffer.begin(), '0');
|
||||||
buffer.insert(buffer.begin() + 1, '.');
|
buffer.insert(buffer.begin() + 1, '.');
|
||||||
for (int i = 2; i < offset; i++)
|
for (int i = 2; i < offset; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user