From 3ad7776d5061308d3e2b4ff9e3cbf67d48bffdd6 Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 24 Mar 2015 12:55:45 +0100 Subject: Core/DBUpdater: Fix some warnings introduced in 966282fbed24a0d0cf8 --- src/server/shared/Updater/UpdateFetcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/shared/Updater/UpdateFetcher.cpp') 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(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()); } } -- cgit v1.2.3