From 81148c50f719f94e150b6b261db2573b3e1b1d54 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 3 Sep 2022 07:57:49 +0300 Subject: [PATCH] Revert "Merge pull request #51 from biodranik/sprintf-warning-fix" This reverts commit e67d186e0dbfee538b8d66cebfc27f119d4eb12a, reversing changes made to a9f296115967335aaa9f4a4cadfd900f131a60d1. --- .../boost/lexical_cast/detail/converter_lexical_streams.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/lexical_cast/detail/converter_lexical_streams.hpp b/include/boost/lexical_cast/detail/converter_lexical_streams.hpp index 158edac..17c6cf9 100644 --- a/include/boost/lexical_cast/detail/converter_lexical_streams.hpp +++ b/include/boost/lexical_cast/detail/converter_lexical_streams.hpp @@ -282,7 +282,7 @@ namespace boost { #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) sprintf_s(begin, CharacterBufferSize, #else - snprintf(begin, CharacterBufferSize, + sprintf(begin, #endif "%.*g", static_cast(boost::detail::lcast_get_precision()), val_as_double); return finish > start; @@ -294,7 +294,7 @@ namespace boost { #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) sprintf_s(begin, CharacterBufferSize, #else - snprintf(begin, CharacterBufferSize, + sprintf(begin, #endif "%.*g", static_cast(boost::detail::lcast_get_precision()), val); return finish > start; @@ -307,7 +307,7 @@ namespace boost { #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) sprintf_s(begin, CharacterBufferSize, #else - snprintf(begin, CharacterBufferSize, + sprintf(begin, #endif "%.*Lg", static_cast(boost::detail::lcast_get_precision()), val ); return finish > start;