Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-27 14:14:49


Author: hkaiser
Date: 2008-04-27 14:14:49 EDT (Sun, 27 Apr 2008)
New Revision: 44822
URL: http://svn.boost.org/trac/boost/changeset/44822

Log:
Spirit.Lex: Fixed a gcc 4.3 warning
Text files modified:
   trunk/boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/iterator_tokenizer.hpp 2008-04-27 14:14:49 EDT (Sun, 27 Apr 2008)
@@ -124,7 +124,8 @@
                 }
                 else
                 {
- std::size_t const state_ = ptr_[lookup_[*curr_++]];
+ std::size_t const state_ = ptr_[
+ lookup_[static_cast<int>(*curr_++)]];
 
                     if (state_ == 0)
                     {
@@ -204,7 +205,8 @@
                 }
                 else
                 {
- std::size_t const state_ = ptr_[lookup_[*curr_++]];
+ std::size_t const state_ = ptr_[
+ lookup_[static_cast<int>(*curr_++)]];
 
                     if (state_ == 0)
                     {


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