|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56913 - trunk/boost/spirit/home/karma/numeric/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-16 08:57:32
Author: hkaiser
Date: 2009-10-16 08:57:32 EDT (Fri, 16 Oct 2009)
New Revision: 56913
URL: http://svn.boost.org/trac/boost/changeset/56913
Log:
Spirit: fixing endianess/truncation problem in Karma's output iterator
Text files modified:
trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp 2009-10-16 08:57:32 EDT (Fri, 16 Oct 2009)
@@ -440,7 +440,7 @@
/**/
#define BOOST_KARMA_NUMERICS_INNER_LOOP_SUFFIX(z, x, data) \
- *sink = ch; \
+ *sink = char(ch); \
++sink; \
} \
/**/
@@ -473,7 +473,7 @@
BOOST_KARMA_NUMERICS_LOOP_UNROLL,
BOOST_KARMA_NUMERICS_INNER_LOOP_SUFFIX, _);
- *sink = ch;
+ *sink = char(ch);
++sink;
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