X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_NoteBook.cxx;h=7994cf1f100ded4e341bb69c016390802484eafd;hb=cb55604f37e3d2583272fd436bb6557b041948b5;hp=1965afaa0d7905802b6b7c24dcfe1cc964d3579b;hpb=6d32f944a0a115b6419184c50b57bf7c4eef5786;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_NoteBook.cxx b/src/SMESH_I/SMESH_NoteBook.cxx index 1965afaa0..7994cf1f1 100644 --- a/src/SMESH_I/SMESH_NoteBook.cxx +++ b/src/SMESH_I/SMESH_NoteBook.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -284,7 +284,7 @@ void SMESH_NoteBook::ReplaceVariables() const char* varIndexPtr = cmdStr.ToCString() + pos; if ( '0' <= *varIndexPtr && *varIndexPtr <= '9' ) varIndex = atoi( varIndexPtr ); - if ( 0 <= varIndex && varIndex < vars.size() && !vars[varIndex].empty() ) + if ( 0 <= (int)varIndex && varIndex < vars.size() && !vars[varIndex].empty() ) { // replace '$VarIndex$' either by var name of var value const char var0 = vars[varIndex][0];