From 159b045ad79f163b3b03ee01fd358f70870611f2 Mon Sep 17 00:00:00 2001 From: Alexander Nasonov Date: Sun, 25 Nov 2007 22:28:16 +0000 Subject: [PATCH] Pass unsigned type to lcast_put_unsigned. [SVN r41385] --- 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 754aecf..12a89f8 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -811,7 +811,7 @@ namespace boost inline bool lexical_stream_limited_src::operator<<( unsigned short n) { - start = lcast_put_unsigned(+n, finish); + start = lcast_put_unsigned(lcast_to_unsigned(n), finish); return true; }