|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55781 - trunk/boost/spirit/home/support/detail/lexer
From: hartmut.kaiser_at_[hidden]
Date: 2009-08-25 18:06:51
Author: hkaiser
Date: 2009-08-25 18:06:50 EDT (Tue, 25 Aug 2009)
New Revision: 55781
URL: http://svn.boost.org/trac/boost/changeset/55781
Log:
Spirit: fixed a problem in lexertl
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/consts.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/consts.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/consts.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/consts.hpp 2009-08-25 18:06:50 EDT (Tue, 25 Aug 2009)
@@ -23,8 +23,8 @@
const std::size_t max_macro_len = 30;
const std::size_t num_chars = 256;
const std::size_t num_wchar_ts =
- (boost::integer_traits<wchar_t>::const_max < 0x110000) ?
- boost::integer_traits<wchar_t>::const_max : 0x110000;
+ (boost::integer_traits<wchar_t>::const_max + 1 < 0x110000) ?
+ boost::integer_traits<wchar_t>::const_max + 1 : 0x110000;
const std::size_t null_token = static_cast<std::size_t> (~0);
const std::size_t bol_token = static_cast<std::size_t> (~1);
const std::size_t eol_token = static_cast<std::size_t> (~2);
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