diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index b649922ae..af40e68e5 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -765,8 +765,8 @@ const std::string Map::getName() const const std::string Map::getFilename() const { std::string fileName = getProperty("_filename"); - int lastSlash = static_cast<int>(fileName.rfind("/")) + 1; - int lastDot = static_cast<int>(fileName.rfind(".")); + size_t lastSlash = fileName.rfind("/") + 1; + size_t lastDot = fileName.rfind("."); return fileName.substr(lastSlash, lastDot - lastSlash); } |