Salome HOME
updated copyright message
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Tools.cpp
index a26b7257e92247735e7670f0e277fb5195d0dabd..dc13d953ce878864c61fe80c6c5c6f3eef1fee1d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -65,7 +65,7 @@ std::string File_Tools::path(const std::string& theFileName)
 {
   OSD_Path aPath (theFileName.c_str());
   Standard_Integer aTrekLen =
-    theFileName.size() - aPath.Extension().Length() - aPath.Name().Length();
+    int(theFileName.size()) - aPath.Extension().Length() - aPath.Name().Length();
   return theFileName.substr(0, aTrekLen);
 }