File tree Expand file tree Collapse file tree
src/lib/core/codestream/decompress Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -283,7 +283,8 @@ bool CodeStreamDecompress::decompress(grk_plugin_tile* tile)
283283 // Composite all tiles in this row into the strip buffer
284284 for (uint16_t col = 0 ; col < band.numCols ; col++)
285285 {
286- uint16_t tileIndex = nextBandTileY_ * numTileCols + (band.tileX0 + col);
286+ uint16_t tileIndex =
287+ static_cast <uint16_t >(nextBandTileY_ * numTileCols + (band.tileX0 + col));
287288 auto cacheEntry = tileCache_->get (tileIndex);
288289 if (!cacheEntry || !cacheEntry->processor )
289290 continue ;
@@ -302,7 +303,8 @@ bool CodeStreamDecompress::decompress(grk_plugin_tile* tile)
302303 // so tile image data is no longer needed.
303304 for (uint16_t col = 0 ; col < band.numCols ; col++)
304305 {
305- uint16_t tileIndex = nextBandTileY_ * numTileCols + (band.tileX0 + col);
306+ uint16_t tileIndex =
307+ static_cast <uint16_t >(nextBandTileY_ * numTileCols + (band.tileX0 + col));
306308 tileCache_->releaseForSwath (tileIndex);
307309 }
308310 MemoryManager::releaseFreedPages ();
You can’t perform that action at this time.
0 commit comments