1.1 --- a/lemon/elevator.h Mon Jul 16 16:21:40 2018 +0200
1.2 +++ b/lemon/elevator.h Wed Oct 17 19:14:07 2018 +0200
1.3 @@ -167,7 +167,7 @@
1.4 ///Return the number of items on level \c l.
1.5 int onLevel(int l) const
1.6 {
1.7 - return _first[l+1]-_first[l];
1.8 + return static_cast<int>(_first[l+1]-_first[l]);
1.9 }
1.10 ///Return true if level \c l is empty.
1.11 bool emptyLevel(int l) const
1.12 @@ -177,12 +177,12 @@
1.13 ///Return the number of items above level \c l.
1.14 int aboveLevel(int l) const
1.15 {
1.16 - return _first[_max_level+1]-_first[l+1];
1.17 + return static_cast<int>(_first[_max_level+1]-_first[l+1]);
1.18 }
1.19 ///Return the number of active items on level \c l.
1.20 int activesOnLevel(int l) const
1.21 {
1.22 - return _last_active[l]-_first[l]+1;
1.23 + return static_cast<int>(_last_active[l]-_first[l]+1);
1.24 }
1.25 ///Return true if there is no active item on level \c l.
1.26 bool activeFree(int l) const