Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58918 - trunk/boost/spirit/home/qi/binary
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-11 20:22:48


Author: hkaiser
Date: 2010-01-11 20:22:48 EST (Mon, 11 Jan 2010)
New Revision: 58918
URL: http://svn.boost.org/trac/boost/changeset/58918

Log:
Spirit: fixed signed/unsigned mismatch in Qi's binary parsers
Text files modified:
   trunk/boost/spirit/home/qi/binary/binary.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/qi/binary/binary.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/binary/binary.hpp (original)
+++ trunk/boost/spirit/home/qi/binary/binary.hpp 2010-01-11 20:22:48 EST (Mon, 11 Jan 2010)
@@ -250,7 +250,7 @@
             Iterator it = first;
             for (unsigned int i = 0; i < sizeof(attr_); ++i)
             {
- if (it == last || *bytes++ != *it++)
+ if (it == last || *bytes++ != static_cast<unsigned char>(*it++))
                     return false;
             }
 


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