From a93c7500d30bfcfa37fb20fd3dd37370d8c41c13 Mon Sep 17 00:00:00 2001 From: Vasily Date: Tue, 19 Feb 2019 19:39:31 +0100 Subject: [PATCH] Fix GCC -Werror=conversion Was mistakenly cast to long long unsigned int instead of double. --- third-party/easylogging++/easylogging++.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/easylogging++/easylogging++.cc b/third-party/easylogging++/easylogging++.cc index 7b9f51e..816203c 100644 --- a/third-party/easylogging++/easylogging++.cc +++ b/third-party/easylogging++/easylogging++.cc @@ -1199,7 +1199,7 @@ base::type::string_t DateTime::formatTime(unsigned long long time, base::Timesta base::type::EnumType start = static_cast(timestampUnit); const base::type::char_t* unit = base::consts::kTimeFormats[start].unit; for (base::type::EnumType i = start; i < base::consts::kTimeFormatsCount - 1; ++i) { - if (static_cast(time <= base::consts::kTimeFormats[i].value)) { + if (static_cast(time <= base::consts::kTimeFormats[i].value)) { break; } if (base::consts::kTimeFormats[i].value == 1000.0 && static_cast(time) / 1000.0f < 1.9f) {