style : change c-style cast to static_cast

This commit is contained in:
Aleksander Kosarskii 2023-01-30 13:23:51 +05:00
parent 32d588d56a
commit 34185a43a7

View File

@ -178,7 +178,7 @@ inline Emitter& Emitter::WriteStreamable(T value) {
}
}
if ((float)((int) value ) == value ){
if (static_cast<float>(static_cast<int>(value)) == value){
stream << std::fixed << std::setprecision(1) << value;
}else if (!special) {
stream << value;