Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76285 - trunk/boost/spirit/home/lex/qi
From: hartmut.kaiser_at_[hidden]
Date: 2012-01-02 19:33:34


Author: hkaiser
Date: 2012-01-02 19:33:33 EST (Mon, 02 Jan 2012)
New Revision: 76285
URL: http://svn.boost.org/trac/boost/changeset/76285

Log:
Spirit: fixing signed/unsigned mismatch warning
Text files modified:
   trunk/boost/spirit/home/lex/qi/plain_raw_token.hpp | 2 +-
   trunk/boost/spirit/home/lex/qi/plain_token.hpp | 2 +-
   trunk/boost/spirit/home/lex/qi/plain_tokenid.hpp | 2 +-
   3 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/lex/qi/plain_raw_token.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/qi/plain_raw_token.hpp (original)
+++ trunk/boost/spirit/home/lex/qi/plain_raw_token.hpp 2012-01-02 19:33:33 EST (Mon, 02 Jan 2012)
@@ -90,7 +90,7 @@
                 typedef typename token_type::id_type id_type;
 
                 token_type const& t = *first;
- if (std::size_t(~0) == id || id_type(id) == t.id()) {
+ if (id_type(~0) == id_type(id) || id_type(id) == t.id()) {
                     spirit::traits::assign_to(t, attr);
                     ++first;
                     return true;

Modified: trunk/boost/spirit/home/lex/qi/plain_token.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/qi/plain_token.hpp (original)
+++ trunk/boost/spirit/home/lex/qi/plain_token.hpp 2012-01-02 19:33:33 EST (Mon, 02 Jan 2012)
@@ -107,7 +107,7 @@
                 typedef typename token_type::id_type id_type;
 
                 token_type const& t = *first;
- if (std::size_t(~0) == id || id_type(id) == t.id()) {
+ if (id_type(~0) == id_type(id) || id_type(id) == t.id()) {
                     spirit::traits::assign_to(t, attr);
                     ++first;
                     return true;

Modified: trunk/boost/spirit/home/lex/qi/plain_tokenid.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/qi/plain_tokenid.hpp (original)
+++ trunk/boost/spirit/home/lex/qi/plain_tokenid.hpp 2012-01-02 19:33:33 EST (Mon, 02 Jan 2012)
@@ -109,7 +109,7 @@
                 typedef typename token_type::id_type id_type;
 
                 token_type const& t = *first;
- if (std::size_t(~0) == id || id_type(id) == t.id()) {
+ if (id_type(~0) == id_type(id) || id_type(id) == t.id()) {
                     spirit::traits::assign_to(id, attr);
                     ++first;
                     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