mirror of https://github.com/CGAL/cgal
Fix conversion warning
This commit is contained in:
parent
9b06cc3fac
commit
e1da290f13
|
|
@ -123,7 +123,7 @@ namespace CGAL {
|
||||||
/// decrement.
|
/// decrement.
|
||||||
SM_Index operator--(int) { SM_Index tmp(*this); --idx_; return tmp; }
|
SM_Index operator--(int) { SM_Index tmp(*this); --idx_; return tmp; }
|
||||||
|
|
||||||
SM_Index operator+=(std::ptrdiff_t n) { idx_ += n; return *this; }
|
SM_Index operator+=(std::ptrdiff_t n) { idx_ = size_type(std::ptrdiff_t(idx_) + n); return *this; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
size_type idx_;
|
size_type idx_;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue