Fix warning

This commit is contained in:
SirLynix 2023-05-01 18:36:34 +02:00
parent 0c64c3d68b
commit 19d0342082
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ namespace Nz
if (header.flags & DDSD_DEPTH)
depth = std::max(header.depth, 1U);
unsigned int levelCount = (parameters.levelCount > 0) ? std::min(parameters.levelCount, SafeCast<UInt8>(header.levelCount)) : header.levelCount;
UInt8 levelCount = (parameters.levelCount > 0) ? std::min(parameters.levelCount, SafeCast<UInt8>(header.levelCount)) : SafeCast<UInt8>(header.levelCount);
// First, identify the type
ImageType type;