We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8cab49 commit 5ee6eecCopy full SHA for 5ee6eec
src/lib/core/tile_processor/TileCompletion.h
@@ -48,8 +48,8 @@ class TileCompletion
48
if(imageWidth == 0 || imageHeight == 0 || tileWidth == 0 || tileHeight == 0)
49
throw std::invalid_argument("Dimensions must be positive");
50
51
- numTileCols_ = static_cast<uint16_t>((imageWidth + tileWidth - 1) / tileWidth);
52
- numTileRows_ = static_cast<uint16_t>((imageHeight + tileHeight - 1) / tileHeight);
+ numTileCols_ = static_cast<uint16_t>(((uint64_t)imageWidth + tileWidth - 1) / tileWidth);
+ numTileRows_ = static_cast<uint16_t>(((uint64_t)imageHeight + tileHeight - 1) / tileHeight);
53
54
// Default to full region if subregion is not provided
55
if(tileSubRegion.has_value())
0 commit comments