Changeset 131 for trunk/lib


Ignore:
Timestamp:
Aug 2, 2006, 9:18:44 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Added static_cast to remove annoying compiler warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r129 r131  
    7575      return std::vector<u_int>();
    7676    std::vector<u_int> vec=(map.find(user))->second;
    77  
    78     if (vec.size() < revision_+1)
     77
     78    // static_cast to remove annoying compiler warning
     79    if (vec.size() < static_cast<size_t>(revision_+1))
    7980      vec.insert(vec.end(), revision_+1-vec.size(), 0);
    8081
Note: See TracChangeset for help on using the changeset viewer.