|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83493 - trunk/libs/utility/test
From: marshall_at_[hidden]
Date: 2013-03-18 16:46:54
Author: marshall
Date: 2013-03-18 16:46:53 EDT (Mon, 18 Mar 2013)
New Revision: 83493
URL: http://svn.boost.org/trac/boost/changeset/83493
Log:
Fix bug in test; thanks to AddressSanitizer for the heads-up
Text files modified:
trunk/libs/utility/test/string_ref_test2.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/utility/test/string_ref_test2.cpp
==============================================================================
--- trunk/libs/utility/test/string_ref_test2.cpp (original)
+++ trunk/libs/utility/test/string_ref_test2.cpp 2013-03-18 16:46:53 EDT (Mon, 18 Mar 2013)
@@ -23,7 +23,7 @@
string_ref sr2 ( arg );
const char *p = arg;
- while ( !*p ) {
+ while ( *p ) {
BOOST_CHECK ( sr.ends_with ( p ));
++p;
}
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