From 95b7172260797cba6051a1fbe39366fddc52955d Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 7 Nov 2013 19:00:47 +0000 Subject: [PATCH] vc++ warnings fixes --- source/shared_lib/sources/platform/common/simple_threads.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/common/simple_threads.cpp b/source/shared_lib/sources/platform/common/simple_threads.cpp index 39c27a1af..a22c7f8b6 100644 --- a/source/shared_lib/sources/platform/common/simple_threads.cpp +++ b/source/shared_lib/sources/platform/common/simple_threads.cpp @@ -89,7 +89,7 @@ void FileCRCPreCacheThread::execute() { if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d] Found megapack techtree and placing it at the TOP of the list\n",__FILE__,__FUNCTION__,__LINE__); } - unsigned int techsPerWorker = (techPaths.size() / MAX_FileCRCPreCacheThread_WORKER_THREADS); + unsigned int techsPerWorker = ((unsigned int)techPaths.size() / (unsigned int)MAX_FileCRCPreCacheThread_WORKER_THREADS); if(techPaths.size() % MAX_FileCRCPreCacheThread_WORKER_THREADS != 0) { techsPerWorker++; } @@ -104,7 +104,7 @@ void FileCRCPreCacheThread::execute() { break; } - unsigned int currentWorkerMax = (techPaths.size() - consumedWorkers); + unsigned int currentWorkerMax = ((unsigned int)techPaths.size() - consumedWorkers); if(currentWorkerMax > techsPerWorker) { currentWorkerMax = techsPerWorker; }