aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-03-24 12:55:45 +0100
committerNaios <naios-dev@live.de>2015-03-24 12:55:45 +0100
commit3ad7776d5061308d3e2b4ff9e3cbf67d48bffdd6 (patch)
tree30731d04c146d5e83189cdea06565d41c05e59cd
parent966282fbed24a0d0cf8cb3e05b1849c3e6a0d1d6 (diff)
Core/DBUpdater: Fix some warnings introduced in 966282fbed24a0d0cf8
-rw-r--r--src/server/shared/Updater/UpdateFetcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/Updater/UpdateFetcher.cpp b/src/server/shared/Updater/UpdateFetcher.cpp
index 3958815d5d6..b93ca614729 100644
--- a/src/server/shared/Updater/UpdateFetcher.cpp
+++ b/src/server/shared/Updater/UpdateFetcher.cpp
@@ -294,7 +294,7 @@ uint32 UpdateFetcher::Update(bool const redundancyChecks, bool const allowRehash
// Cleanup up orphaned entries if enabled
if (!applied.empty())
{
- bool const doCleanup = (cleanDeadReferencesMaxCount == -1) || (applied.size() <= cleanDeadReferencesMaxCount);
+ bool const doCleanup = (cleanDeadReferencesMaxCount < 0) || (applied.size() <= static_cast<size_t>(cleanDeadReferencesMaxCount));
for (auto const& entry : applied)
{
@@ -309,7 +309,7 @@ uint32 UpdateFetcher::Update(bool const redundancyChecks, bool const allowRehash
CleanUp(applied);
else
{
- TC_LOG_ERROR("sql.updates", "Cleanup is disabled! There are %u dirty files that were applied to your database " \
+ TC_LOG_ERROR("sql.updates", "Cleanup is disabled! There are %zu dirty files that were applied to your database " \
"but are now missing in your source directory!", applied.size());
}
}