From 959b7ab0b47df8c31d26e9541cd5c6e5aad9c2ac Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Mon, 26 Feb 2007 17:27:26 +0000 Subject: [PATCH] Fixed a warning, when lexical cast is used to convert a boost::ulong_long_type to a string. [SVN r37082] --- 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 8a0266c..c5f0343 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -505,7 +505,7 @@ namespace boost --left; --finish; - int const digit = n % 10; + int const digit = static_cast(n % 10); int const cdigit = digit + lcast_char_constants::zero; *finish = static_cast(cdigit); n /= 10;