From 284c51477a7f445bde3c6bfc56539fdc3912a0fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Feb 2017 02:42:13 +0300 Subject: Fix code style. --- src/fs/virtfsdir.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/fs') 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(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(statbuf.st_size); return pos < 0 || len < 0 || pos >= len; } } // namespace VirtFs -- cgit v1.2.3-60-g2f50