From cf02c6ccd32cf04773ce4d6103f4298067e3ade6 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Thu, 20 Apr 2023 13:15:27 +0200 Subject: [PATCH] Change capitalization of exponent character --- include/boost/charconv/detail/dragonbox.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/charconv/detail/dragonbox.hpp b/include/boost/charconv/detail/dragonbox.hpp index 9ef83ee..f00676c 100644 --- a/include/boost/charconv/detail/dragonbox.hpp +++ b/include/boost/charconv/detail/dragonbox.hpp @@ -2552,7 +2552,7 @@ namespace to_chars_detail { result.exponent, buffer); } else { - std::memcpy(buffer, "0E0", 3); + std::memcpy(buffer, "0e0", 3); return buffer + 3; } } @@ -2876,13 +2876,13 @@ namespace to_chars_detail { // Print exponent and return if (exponent < 0) { - std::memcpy(buffer, "E-", 2); + std::memcpy(buffer, "e-", 2); buffer += 2; exponent = -exponent; } else { - buffer[0] = 'E'; - buffer += 1; + std::memcpy(buffer, "e+", 2); + buffer += 2; } if (exponent >= 10) {