Fix conversion warning

This commit is contained in:
Simon Giraudot 2018-06-18 14:45:49 +02:00
parent 9b06cc3fac
commit e1da290f13
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ namespace CGAL {
/// decrement.
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:
size_type idx_;