Modern cast cleanup (#462)

* static_cast

* cleanup and building
This commit is contained in:
Michael Miller
2021-04-13 10:45:35 -07:00
committed by GitHub
parent 2480634ca7
commit 5e492ea925
12 changed files with 41 additions and 41 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ struct HtmlColor
// ------------------------------------------------------------------------
HtmlColor(const RgbColor& color)
{
Color = (uint32_t)color.R << 16 | (uint32_t)color.G << 8 | (uint32_t)color.B;
Color = static_cast<uint32_t>(color.R) << 16 | static_cast<uint32_t>(color.G) << 8 | static_cast<uint32_t>(color.B);
}
// ------------------------------------------------------------------------