Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57473 - trunk/libs/spirit/test/lex
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-07 18:00:37


Author: hkaiser
Date: 2009-11-07 18:00:36 EST (Sat, 07 Nov 2009)
New Revision: 57473
URL: http://svn.boost.org/trac/boost/changeset/57473

Log:
Spirit: and yet another fixed warning
Text files modified:
   trunk/libs/spirit/test/lex/set_token_value.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/spirit/test/lex/set_token_value.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/set_token_value.cpp (original)
+++ trunk/libs/spirit/test/lex/set_token_value.cpp 2009-11-07 18:00:36 EST (Sat, 07 Nov 2009)
@@ -107,7 +107,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 struct token_data
 {
- std::size_t id;
+ int id;
     unsigned int value;
 };
 
@@ -121,7 +121,7 @@
             return false; // reached end of expected data
 
         typename Token::token_value_type const& value (t.value());
- if (t.id() != d->id) // token id must match
+ if (t.id() != static_cast<std::size_t>(d->id)) // token id must match
             return false;
         if (value.which() != 1) // must have an integer value
             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