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();