Fixed msvc conversion warnings

This commit is contained in:
gabime 2018-07-04 10:44:05 +03:00
parent 95de24e4f6
commit 59f54cda10
2 changed files with 2 additions and 9 deletions

View File

@ -86,7 +86,7 @@ inline void pad3(int n, fmt::memory_buffer &dest)
fmt::format_to(dest, "{:03}", n); fmt::format_to(dest, "{:03}", n);
} }
inline void pad6(int n, fmt::memory_buffer &dest) inline void pad6(size_t n, fmt::memory_buffer &dest)
{ {
if (n > 99999) if (n > 99999)
{ {
@ -123,11 +123,6 @@ inline void pad6(int n, fmt::memory_buffer &dest)
dest.push_back('0'); dest.push_back('0');
dest.push_back('0'); dest.push_back('0');
} }
else // negatives (unlikely, but just in case let fmt deal with it)
{
fmt::format_to(dest, "{:06}", n);
return;
}
append_int(n, dest); append_int(n, dest);
} }

View File

@ -59,7 +59,6 @@ public:
{ {
return false; return false;
} }
q_.pop_front(popped_item); q_.pop_front(popped_item);
} }
pop_cv_.notify_one(); pop_cv_.notify_one();
@ -70,7 +69,6 @@ private:
std::mutex queue_mutex_; std::mutex queue_mutex_;
std::condition_variable push_cv_; std::condition_variable push_cv_;
std::condition_variable pop_cv_; std::condition_variable pop_cv_;
spdlog::details::circular_q<T> q_; spdlog::details::circular_q<T> q_;
}; };
} // namespace details } // namespace details