From 51af571a4faa9257666fa523d6c5a2f354689b8f Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Fri, 26 Jul 2019 12:36:41 +0200 Subject: [PATCH] fixed warning --- src/mapping/PathTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapping/PathTools.cpp b/src/mapping/PathTools.cpp index 6e4ed801e..2ac652bab 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 { -- GitLab