diff --git a/source/Cosmos.System2/FileSystem/CosmosVFS.cs b/source/Cosmos.System2/FileSystem/CosmosVFS.cs index e406f18ba..1d062af11 100644 --- a/source/Cosmos.System2/FileSystem/CosmosVFS.cs +++ b/source/Cosmos.System2/FileSystem/CosmosVFS.cs @@ -355,8 +355,7 @@ namespace Cosmos.System.FileSystem for (int i = 0; i < mPartitions.Count; i++) { string xRootPath = string.Concat(i, VolumeSeparatorChar, DirectorySeparatorChar); - ulong Size = mPartitions[i].BlockCount * mPartitions[i].BlockSize / 1024 / 1024; - long xSize = (long)Size; + var xSize = (long)(mPartitions[i].BlockCount * mPartitions[i].BlockSize / 1024 / 1024); switch (FileSystem.GetFileSystemType(mPartitions[i])) { case FileSystemType.FAT: