Changeset 2465 for branches/0.7-stable


Ignore:
Timestamp:
Apr 11, 2011, 10:55:41 PM (11 years ago)
Author:
Peter
Message:

avoid dereference end of range iterator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/yat/statistics/Percentiler.h

    r2444 r2465  
    179179      std::vector<double>::const_iterator upper(accum_w.begin());
    180180      double margin=1e-10;
    181       while (*upper <= w_bound+margin && upper!=accum_w.end())
     181      while (upper!=accum_w.end() && *upper <= w_bound+margin)
    182182        ++upper;
    183183      if (upper==accum_w.end())
Note: See TracChangeset for help on using the changeset viewer.