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

+2 -2
View File
@@ -162,9 +162,9 @@ private:
uint16_t result = PixelIndex_OutOfBounds;
if (x >= 0 &&
(uint16_t)x < Width() &&
static_cast<uint16_t>(x) < Width() &&
y >= 0 &&
(uint16_t)y < Height())
static_cast<uint16_t>(y) < Height())
{
result = x + y * Width();
}