|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49626 - in trunk/boost/xpressive: detail/dynamic traits
From: eric_at_[hidden]
Date: 2008-11-07 12:02:12
Author: eric_niebler
Date: 2008-11-07 12:02:11 EST (Fri, 07 Nov 2008)
New Revision: 49626
URL: http://svn.boost.org/trac/boost/changeset/49626
Log:
eliminate some signed/unsigned warnings
Text files modified:
trunk/boost/xpressive/detail/dynamic/parser.hpp | 4 ++--
trunk/boost/xpressive/traits/cpp_regex_traits.hpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/boost/xpressive/detail/dynamic/parser.hpp
==============================================================================
--- trunk/boost/xpressive/detail/dynamic/parser.hpp (original)
+++ trunk/boost/xpressive/detail/dynamic/parser.hpp 2008-11-07 12:02:11 EST (Fri, 07 Nov 2008)
@@ -176,7 +176,7 @@
if(0 != compound.posix_yes())
{
typename Traits::char_class_type mask = compound.posix_yes();
- for(int i = 0; i <= UCHAR_MAX; ++i)
+ for(int i = 0; i <= static_cast<int>(UCHAR_MAX); ++i)
{
if(traits.isctype((Char)i, mask))
{
@@ -190,7 +190,7 @@
for(std::size_t j = 0; j < compound.posix_no().size(); ++j)
{
typename Traits::char_class_type mask = compound.posix_no()[j];
- for(int i = 0; i <= UCHAR_MAX; ++i)
+ for(int i = 0; i <= static_cast<int>(UCHAR_MAX); ++i)
{
if(!traits.isctype((Char)i, mask))
{
Modified: trunk/boost/xpressive/traits/cpp_regex_traits.hpp
==============================================================================
--- trunk/boost/xpressive/traits/cpp_regex_traits.hpp (original)
+++ trunk/boost/xpressive/traits/cpp_regex_traits.hpp 2008-11-07 12:02:11 EST (Fri, 07 Nov 2008)
@@ -258,7 +258,7 @@
{
int i = 0;
Char allchars[UCHAR_MAX + 1];
- for(i = 0; i <= UCHAR_MAX; ++i)
+ for(i = 0; i <= static_cast<int>(UCHAR_MAX); ++i)
{
allchars[i] = static_cast<Char>(i);
}
@@ -266,7 +266,7 @@
std::ctype<Char> const &ct = BOOST_USE_FACET(std::ctype<Char>, loc);
std::ctype_base::mask tmp[UCHAR_MAX + 1];
ct.is(allchars, allchars + UCHAR_MAX + 1, tmp);
- for(i = 0; i <= UCHAR_MAX; ++i)
+ for(i = 0; i <= static_cast<int>(UCHAR_MAX); ++i)
{
this->masks_[i] = static_cast<umask_t>(tmp[i]);
BOOST_ASSERT(0 == (this->masks_[i] & non_std_ctype_masks));
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