Boost logo

Boost-Commit :

From: Alexander.Nasonov_at_[hidden]
Date: 2007-11-25 17:28:16


Author: nasonov
Date: 2007-11-25 17:28:16 EST (Sun, 25 Nov 2007)
New Revision: 41385
URL: http://svn.boost.org/trac/boost/changeset/41385

Log:
Pass unsigned type to lcast_put_unsigned.

Text files modified:
   trunk/boost/lexical_cast.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2007-11-25 17:28:16 EST (Sun, 25 Nov 2007)
@@ -811,7 +811,7 @@
         inline bool lexical_stream_limited_src<CharT,Base>::operator<<(
                 unsigned short n)
         {
- start = lcast_put_unsigned(+n, finish);
+ start = lcast_put_unsigned(lcast_to_unsigned(n), finish);
             return true;
         }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk