diff --git a/src/mapping/PathTools.cpp b/src/mapping/PathTools.cpp index 6e4ed801eedb3f37de4f570fa31cf5ea0e24f038..2ac652bab2b2af9b6eb596615c82e8445370ab87 100644 --- a/src/mapping/PathTools.cpp +++ b/src/mapping/PathTools.cpp @@ -161,7 +161,7 @@ int PathTools::main(FILE* in, FILE*out,Communicator& pc) { if( fixed[0]!=0 ) error("input to --fixed should be two integers"); fixed.resize(2); fixed[0]=0; fixed[1]=frames.size()-1; } else if( fixed.size()==2 ) { - if( fixed[0]<0 || fixed[1]<0 || fixed[0]>(frames.size()-1) || fixed[1]>(frames.size()-1) ) { + if( fixed[0]>(frames.size()-1) || fixed[1]>(frames.size()-1) ) { error("input to --fixed should be two numbers between 0 and the number of frames-1"); } } else {