Skip to content

Commit 69ba57f

Browse files
author
Grok Compression
committed
compile: fix a few warnings
1 parent b987926 commit 69ba57f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib/core/codestream/decompress/CodeStreamDecompress.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)