summaryrefslogtreecommitdiff
path: root/src/fs/virtfsdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/virtfsdir.cpp')
-rw-r--r--src/fs/virtfsdir.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/virtfsdir.cpp b/src/fs/virtfsdir.cpp
index 4ca4acafa..c3471b2d7 100644
--- a/src/fs/virtfsdir.cpp
+++ b/src/fs/virtfsdir.cpp
@@ -283,7 +283,6 @@ namespace VirtFsDir
VirtDirEntry *const entry = *it;
if (Files::existsLocal(entry->mRootDir + name))
return true;
-
}
return false;
}
@@ -504,7 +503,7 @@ namespace VirtFsDir
reportAlways("VirtFsDir::fileLength error.");
return -1;
}
- return (int64_t)statbuf.st_size;
+ return static_cast<int64_t>(statbuf.st_size);
}
int64_t tell(VirtFile *restrict const file)
@@ -558,7 +557,7 @@ namespace VirtFsDir
reportAlways("VirtFsDir::fileLength error.");
return -1;
}
- const int64_t len = (int64_t)statbuf.st_size;
+ const int64_t len = static_cast<int64_t>(statbuf.st_size);
return pos < 0 || len < 0 || pos >= len;
}
} // namespace VirtFs