Fix gcc and clang -Wdouble-promotion
This commit is contained in:
+1
-1
@@ -1202,7 +1202,7 @@ base::type::string_t DateTime::formatTime(unsigned long long time, base::Timesta
|
||||
if (time <= base::consts::kTimeFormats[i].value) {
|
||||
break;
|
||||
}
|
||||
if (base::consts::kTimeFormats[i].value == 1000.0f && time / 1000.0f < 1.9f) {
|
||||
if (base::consts::kTimeFormats[i].value == 1000.0 && time / 1000.0f < 1.9f) {
|
||||
break;
|
||||
}
|
||||
time /= static_cast<decltype(time)>(base::consts::kTimeFormats[i].value);
|
||||
|
||||
Reference in New Issue
Block a user