Changeset 1418 for trunk/lib/Graph.cc


Ignore:
Timestamp:
Oct 25, 2011, 3:00:49 AM (10 years ago)
Author:
Peter Johansson
Message:

avoid warnings (-Wall)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r1331 r1418  
    9393#ifdef HAVE_PLPLOT
    9494    if (!plots_) {
    95       assert(!date_xticks() || rev_min_<dates_.size());
     95      assert(!date_xticks() || static_cast<size_t>(rev_min_)<dates_.size());
    9696      assert(!date_xticks() || dates_[rev_min_]);
    97       assert(rev_min_<dates_.size() || !date_xticks());
     97      assert(static_cast<size_t>(rev_min_)<dates_.size() || !date_xticks());
    9898      xmin_= date_xticks() ? dates_[rev_min_] : rev_min_;
    99       assert(rev_max_<dates_.size() || !date_xticks());
     99      assert(static_cast<size_t>(rev_max_)<dates_.size() || !date_xticks());
    100100      xmax_= date_xticks() ? dates_[rev_max_] : rev_max_;
    101101      xrange_=xmax_-xmin_;
     
    202202    PLFLT x1 = rev1;
    203203    if (date_xticks()) {
    204       assert(rev0<dates_.size());
     204      assert(static_cast<size_t>(rev0)<dates_.size());
    205205      assert(dates_[rev0]);
    206206      x0 = dates_[rev0];
    207       assert(rev1<dates_.size());
     207      assert(static_cast<size_t>(rev1)<dates_.size());
    208208      assert(dates_[rev1]);
    209209      x1 = dates_[rev1];
Note: See TracChangeset for help on using the changeset viewer.