|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66948 - trunk/libs/spirit/test/lex
From: hartmut.kaiser_at_[hidden]
Date: 2010-12-01 09:39:54
Author: hkaiser
Date: 2010-12-01 09:39:43 EST (Wed, 01 Dec 2010)
New Revision: 66948
URL: http://svn.boost.org/trac/boost/changeset/66948
Log:
Spirit: more warning fixes in lexer tests
Text files modified:
trunk/libs/spirit/test/lex/auto_switch_lexerstate.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/spirit/test/lex/auto_switch_lexerstate.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/auto_switch_lexerstate.cpp (original)
+++ trunk/libs/spirit/test/lex/auto_switch_lexerstate.cpp 2010-12-01 09:39:43 EST (Wed, 01 Dec 2010)
@@ -82,11 +82,11 @@
token_iterator begin2 = l.begin(begin, end);
token_iterator end2 = l.end();
- int test_data[] = { 2, 1, 2 };
+ std::size_t test_data[] = { 2, 1, 2 };
std::size_t const test_data_size = sizeof(test_data)/sizeof(test_data[0]);
token_iterator it = begin2;
- int i = 0;
+ std::size_t i = 0;
for (/**/; it != end2 && i < test_data_size; ++it, ++i)
{
BOOST_TEST(it->id() == test_data[i]);
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