Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58520 - trunk/libs/spirit/test/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-12-23 17:22:38


Author: hkaiser
Date: 2009-12-23 17:22:38 EST (Wed, 23 Dec 2009)
New Revision: 58520
URL: http://svn.boost.org/trac/boost/changeset/58520

Log:
Spirit: little endian binary test fix
Text files modified:
   trunk/libs/spirit/test/karma/binary.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/spirit/test/karma/binary.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/binary.cpp (original)
+++ trunk/libs/spirit/test/karma/binary.cpp 2009-12-23 17:22:38 EST (Wed, 23 Dec 2009)
@@ -223,7 +223,8 @@
 #else // BOOST_LITTLE_ENDIAN
 
         BOOST_TEST(binary_test("\x01", 1, byte_, phoenix::val(0x01)));
- BOOST_TEST(binary_test("\x01\x02", 2, byte_, phoenix::val(0x0102)));
+ BOOST_TEST(binary_test("\x01\x02", 2, byte_,
+ phoenix::val(boost::uint16_t(0x0102))));
         BOOST_TEST(binary_test("\x01\x02\x03\x04", 4, dword,
             phoenix::val(0x01020304)));
 


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