diff --git a/include/spdlog/sinks/daily_file_sink.h b/include/spdlog/sinks/daily_file_sink.h index 5b15302c..fc5a770d 100644 --- a/include/spdlog/sinks/daily_file_sink.h +++ b/include/spdlog/sinks/daily_file_sink.h @@ -45,7 +45,7 @@ class daily_file_sink final : public base_sink { public: // create daily file sink which rotates on given time - daily_file_sink(filename_t base_filename, int rotation_hour, int rotation_minute, bool truncate = false, ushort max_files = 0) + daily_file_sink(filename_t base_filename, int rotation_hour, int rotation_minute, bool truncate = false, uint16_t max_files = 0) : base_filename_(std::move(base_filename)) , rotation_h_(rotation_hour) , rotation_m_(rotation_minute) @@ -157,7 +157,7 @@ private: log_clock::time_point rotation_tp_; details::file_helper file_helper_; bool truncate_; - ushort max_files_; + uint16_t max_files_; details::circular_q filenames_q_; }; diff --git a/tests/test_daily_logger.cpp b/tests/test_daily_logger.cpp index afa1c02f..c936e998 100644 --- a/tests/test_daily_logger.cpp +++ b/tests/test_daily_logger.cpp @@ -110,7 +110,7 @@ static spdlog::details::log_msg create_msg(std::chrono::seconds offset) return msg; } -static void test_rotate(int days_to_run, ushort max_days, ushort expected_n_files) +static void test_rotate(int days_to_run, uint16_t max_days, uint16_t expected_n_files) { using spdlog::log_clock; using spdlog::details::log_msg;