COIN-OR::LEMON - Graph Library

Changeset 1124:d51126dc39fa in lemon-main for lemon/elevator.h


Ignore:
Timestamp:
04/02/15 13:36:16 (5 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Resolve MSVC conversion warnings C4244 (#519)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/elevator.h

    r581 r1124  
    168168    int onLevel(int l) const
    169169    {
    170       return _first[l+1]-_first[l];
     170      return static_cast<int>(_first[l+1]-_first[l]);
    171171    }
    172172    ///Return true if level \c l is empty.
     
    178178    int aboveLevel(int l) const
    179179    {
    180       return _first[_max_level+1]-_first[l+1];
     180      return static_cast<int>(_first[_max_level+1]-_first[l+1]);
    181181    }
    182182    ///Return the number of active items on level \c l.
    183183    int activesOnLevel(int l) const
    184184    {
    185       return _last_active[l]-_first[l]+1;
     185      return static_cast<int>(_last_active[l]-_first[l]+1);
    186186    }
    187187    ///Return true if there is no active item on level \c l.
Note: See TracChangeset for help on using the changeset viewer.