-// Copyright (C) 2014-2021 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
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);
}