fix signed vs unsigned warning

This commit is contained in:
wmayer
2017-03-23 22:18:48 +01:00
parent c56b4d6527
commit 6c82b87e83

View File

@@ -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;