|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61292 - trunk/libs/spirit/example/scheme/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-04-15 10:59:13
Author: hkaiser
Date: 2010-04-15 10:59:11 EDT (Thu, 15 Apr 2010)
New Revision: 61292
URL: http://svn.boost.org/trac/boost/changeset/61292
Log:
Spirit: fixing a warning
Text files modified:
trunk/libs/spirit/example/scheme/detail/utree_detail2.hpp | 2 +-
trunk/libs/spirit/example/scheme/detail/utree_detail3.hpp | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
Modified: trunk/libs/spirit/example/scheme/detail/utree_detail2.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/detail/utree_detail2.hpp (original)
+++ trunk/libs/spirit/example/scheme/detail/utree_detail2.hpp 2010-04-15 10:59:11 EDT (Thu, 15 Apr 2010)
@@ -65,7 +65,7 @@
// if it fits, store it in-situ; small_string_size minus the length
// of the string is placed in buff[small_string_size - 1]
str = buff;
- buff[small_string_size - 1] = max_string_len - size;
+ buff[small_string_size - 1] = static_cast<char>(max_string_len - size);
info() &= ~0x1;
}
else
Modified: trunk/libs/spirit/example/scheme/detail/utree_detail3.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/detail/utree_detail3.hpp (original)
+++ trunk/libs/spirit/example/scheme/detail/utree_detail3.hpp 2010-04-15 10:59:11 EDT (Thu, 15 Apr 2010)
@@ -148,8 +148,7 @@
typedef utree const& type;
static type call(utree const& x)
{
- return (x.which() == scheme::utree_type::reference_type) ?
- x.deref() : x;
+ return x.which() == utree_type::reference_type ? *x.p : x;
}
};
}
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