From 3f18dd197be35d2ffc715614644b9a826a8271ca Mon Sep 17 00:00:00 2001 From: yogwoggf <100450992+yogwoggf@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:18:54 -0700 Subject: [PATCH] Use unsigned long long literals for getImageSizeBytes in vtf.cpp --- src/vtf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vtf.cpp b/src/vtf.cpp index 71fd7f0..06f236f 100644 --- a/src/vtf.cpp +++ b/src/vtf.cpp @@ -101,9 +101,9 @@ namespace VtfParser { size_t size = 0; for (uint8_t mipLevel = 0; mipLevel < sizeInfo.mipLevels; mipLevel++) { ImageSizeInfo mipSizeInfo = sizeInfo; - mipSizeInfo.width = std::max(sizeInfo.width >> mipLevel, 1ul); - mipSizeInfo.height = std::max(sizeInfo.height >> mipLevel, 1ul); - mipSizeInfo.depth = std::max(sizeInfo.depth >> mipLevel, 1ul); + mipSizeInfo.width = std::max(sizeInfo.width >> mipLevel, 1ull); + mipSizeInfo.height = std::max(sizeInfo.height >> mipLevel, 1ull); + mipSizeInfo.depth = std::max(sizeInfo.depth >> mipLevel, 1ull); size += getMipSizeBytes(mipSizeInfo); }