diff --git a/src/Mod/Path/Gui/ViewProviderPath.cpp b/src/Mod/Path/Gui/ViewProviderPath.cpp index 35fcecd331..450a5be55e 100644 --- a/src/Mod/Path/Gui/ViewProviderPath.cpp +++ b/src/Mod/Path/Gui/ViewProviderPath.cpp @@ -358,7 +358,7 @@ void ViewProviderPath::updateShowConstraints() { StartIndexConstraints.UpperBound = tp.getSize(); - if(StartIndex.getValue() >= tp.getSize()) { + if (StartIndex.getValue() >= (long)tp.getSize()) { int start = ((int)tp.getSize())-ShowCount.getValue(); if(start>=(int)tp.getSize()) start=tp.getSize()-1;