diff options
Diffstat (limited to 'src/fs/virtfs/tools.cpp')
-rw-r--r-- | src/fs/virtfs/tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/tools.cpp b/src/fs/virtfs/tools.cpp index b0d6ce067..7e572ecc3 100644 --- a/src/fs/virtfs/tools.cpp +++ b/src/fs/virtfs/tools.cpp @@ -47,7 +47,7 @@ namespace VirtFs const size_t len = str.size(); if (len > ext.length() && - (ext.compare(str.substr(len - ext.length())) == 0)) + ext == str.substr(len - ext.length())) { const std::string file = path + str; const std::string realPath = VirtFs::getRealDir(file); @@ -66,7 +66,7 @@ namespace VirtFs const std::string str = *i; const size_t len = str.size(); if (len > ext.length() && - (ext.compare(str.substr(len - ext.length())) == 0)) + ext == str.substr(len - ext.length())) { const std::string file = path + str; const std::string realPath = VirtFs::getRealDir(file); |