|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-12-15 13:49:13
Author: johnmaddock
Date: 2007-12-15 13:49:13 EST (Sat, 15 Dec 2007)
New Revision: 42080
URL: http://svn.boost.org/trac/boost/changeset/42080
Log:
Yet another MSVC warning suppression.
Text files modified:
trunk/boost/format/feed_args.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/format/feed_args.hpp
==============================================================================
--- trunk/boost/format/feed_args.hpp (original)
+++ trunk/boost/format/feed_args.hpp 2007-12-15 13:49:13 EST (Sat, 15 Dec 2007)
@@ -220,7 +220,7 @@
//find where we should pad
size_type sz = (std::min)(res_size + (prefix_space ? 1 : 0), tmp_size);
size_type i = prefix_space;
- for(; i<sz && tmp_beg[i] == res[i-prefix_space]; ++i) {}
+ for(; i<sz && tmp_beg[i] == res[i - (prefix_space ? 1 : 0)]; ++i) {}
if(i>=tmp_size) i=prefix_space;
res.assign(tmp_beg, i);
std::streamsize d = w - static_cast<std::streamsize>(tmp_size);
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