From 7e7f494dd12230982c1082c350eac29c3649037c Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sun, 4 Mar 2012 17:59:03 +0000 Subject: [PATCH] Attempt to supress warning described in #6645 (implicit conversion shortens 64-bit value into a 32-bit value) [SVN r77221] --- include/boost/lexical_cast.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/lexical_cast.hpp b/include/boost/lexical_cast.hpp index a68152b..b73c741 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -953,7 +953,7 @@ namespace boost CharT const capital_e = lcast_char_constants::capital_e; CharT const lowercase_e = lcast_char_constants::lowercase_e; - value = 0.0; + value = static_cast(0); if (parse_inf_nan(begin, end, value)) return true;