Changeset 762 for trunk


Ignore:
Timestamp:
Jan 29, 2009, 3:59:37 PM (12 years ago)
Author:
Peter Johansson
Message:

avoid compiler warning in DNDEBUG mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r759 r762  
    166166      std::vector<std::string> dates;
    167167      dates.reserve(log.commits().size());
    168       size_t rev = 0;
    169168      for (SVNlog::container::const_iterator iter=log.commits().begin();
    170169           iter!=log.commits().end(); ++iter) {
    171         assert(static_cast<svn_revnum_t>(rev)==iter->revision());
    172         assert(++rev);
     170        assert(static_cast<svn_revnum_t>(dates.size())==iter->revision());
    173171        dates.push_back(iter->date());
    174172      }
Note: See TracChangeset for help on using the changeset viewer.