diff options
Diffstat (limited to 'boost/icl/interval_bounds.hpp')
-rw-r--r-- | boost/icl/interval_bounds.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/icl/interval_bounds.hpp b/boost/icl/interval_bounds.hpp index edf16d01ec..f917cb6f56 100644 --- a/boost/icl/interval_bounds.hpp +++ b/boost/icl/interval_bounds.hpp @@ -41,8 +41,8 @@ public: interval_bounds all ()const { return interval_bounds(_bits & _all ); } interval_bounds left ()const { return interval_bounds(_bits & _left ); } interval_bounds right()const { return interval_bounds(_bits & _right); } - interval_bounds reverse_left ()const { return interval_bounds((~_bits>>1) & _right); } - interval_bounds reverse_right()const { return interval_bounds((~_bits<<1) & _left ); } + interval_bounds reverse_left ()const { return interval_bounds((bound_type(~_bits)>>1) & _right); } + interval_bounds reverse_right()const { return interval_bounds((bound_type(~_bits)<<1) & _left ); } bound_type bits()const{ return _bits; } |