From 65b4fbc484211aa5dd370fa12e8bc68fa6dde48b Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 17 Jul 2020 14:51:28 +0200 Subject: [PATCH] Fix signed-unsigned comparison warning --- AdaptiveBrightness/log_to_file.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdaptiveBrightness/log_to_file.hpp b/AdaptiveBrightness/log_to_file.hpp index 01abfd7..c650ce0 100644 --- a/AdaptiveBrightness/log_to_file.hpp +++ b/AdaptiveBrightness/log_to_file.hpp @@ -17,7 +17,7 @@ static inline void rotateLog(const std::filesystem::path& logFileName, int numRo const auto generateRotateNames = [&]() { std::vector rotateFileNames = {QString().fromStdString(logFileName.string())}; - for(size_t i = 1; i < numRotatingLogs; ++i) { + for(int i = 1; i < numRotatingLogs; ++i) { auto rotateName = logFileName.stem(); rotateName += std::string(".") + std::to_string(i); rotateName += logFileName.extension();