Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80697 - branches/release/libs/date_time/src/gregorian
From: marshall_at_[hidden]
Date: 2012-09-24 14:08:17


Author: marshall
Date: 2012-09-24 14:08:16 EDT (Mon, 24 Sep 2012)
New Revision: 80697
URL: http://svn.boost.org/trac/boost/changeset/80697

Log:
Merge bug fix to trunk; fixes #7022
Properties modified:
   branches/release/libs/date_time/src/gregorian/ (props changed)
Text files modified:
   branches/release/libs/date_time/src/gregorian/date_generators.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: branches/release/libs/date_time/src/gregorian/date_generators.cpp
==============================================================================
--- branches/release/libs/date_time/src/gregorian/date_generators.cpp (original)
+++ branches/release/libs/date_time/src/gregorian/date_generators.cpp 2012-09-24 14:08:16 EDT (Mon, 24 Sep 2012)
@@ -22,7 +22,7 @@
   //! Returns nth arg as string. 1 -> "first", 2 -> "second", max is 5.
   BOOST_DATE_TIME_DECL const char* nth_as_str(int ele)
   {
- if(ele >= 1 || ele <= 5) {
+ if(ele >= 1 && ele <= 5) {
       return _nth_as_str[ele];
     }
     else {


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