From 228567364feea46ea8c8246a3c2a41a3aac8429a Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 29 Aug 2017 15:43:16 -0700 Subject: [PATCH] Remove the memmove I accidentally left in, corrupting small numbers --- milo/dtoa_milo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/milo/dtoa_milo.h b/milo/dtoa_milo.h index d921353f..e3dc3e84 100644 --- a/milo/dtoa_milo.h +++ b/milo/dtoa_milo.h @@ -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++)