Remove warnings

This commit is contained in:
Alexander Bock
2018-09-01 21:48:53 -04:00
parent 518b43db02
commit 35855de9f5
4 changed files with 17 additions and 11 deletions

View File

@@ -699,8 +699,12 @@ void OpenSpaceEngine::loadSingleAsset(const std::string& assetPath) {
progressInfo.progress = (*it)->progress();
if ((*it)->nTotalBytesIsKnown()) {
progressInfo.currentSize = static_cast<float>((*it)->nSynchronizedBytes());
progressInfo.totalSize = static_cast<float>((*it)->nTotalBytes());
progressInfo.currentSize = static_cast<int>(
(*it)->nSynchronizedBytes()
);
progressInfo.totalSize = static_cast<int>(
(*it)->nTotalBytes()
);
}
loading = true;