|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83304 - trunk/boost/xpressive/detail/utility
From: eric_at_[hidden]
Date: 2013-03-05 01:08:00
Author: eric_niebler
Date: 2013-03-05 01:08:00 EST (Tue, 05 Mar 2013)
New Revision: 83304
URL: http://svn.boost.org/trac/boost/changeset/83304
Log:
silence a gcc warning, refs #8138
Text files modified:
trunk/boost/xpressive/detail/utility/sequence_stack.hpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/boost/xpressive/detail/utility/sequence_stack.hpp
==============================================================================
--- trunk/boost/xpressive/detail/utility/sequence_stack.hpp (original)
+++ trunk/boost/xpressive/detail/utility/sequence_stack.hpp 2013-03-05 01:08:00 EST (Tue, 05 Mar 2013)
@@ -115,7 +115,10 @@
}
// grow exponentially
- std::size_t new_size = (std::max)(count, static_cast<std::size_t>(this->current_chunk_->size() * 1.5));
+ std::size_t new_size = (std::max)(
+ count
+ , static_cast<std::size_t>(static_cast<double>(this->current_chunk_->size()) * 1.5)
+ );
// Create a new expr and insert it into the list
this->current_chunk_ = new chunk(new_size, t, count, this->current_chunk_, this->current_chunk_->next_);
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