Modern cast cleanup (#462)

* static_cast

* cleanup and building
This commit is contained in:
Michael Miller authored and GitHub committed 2021-04-13 10:45:35 -07:00
1 parent 2480634ca7
commit 5e492ea925
12 files changed
+41 -41

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ public:
// Only update if there is a change
if (brightness != _brightness)
{
uint16_t scale = (((uint16_t)brightness + 1) << 8) / ((uint16_t)_brightness + 1);
uint16_t scale = ((static_cast<uint16_t>(brightness) + 1) << 8) / (static_cast<uint16_t>(_brightness) + 1);
// scale existing pixels
//