VpkLib: use correct type for chunk offset

This var must be unsigned as VPKChunkDescriptor_t's ctor takes an u64 for chunk offset.
This commit is contained in:
Kawe Mazidjatari 2024-11-15 13:59:12 +01:00
parent bc54931408
commit aac8c84442

View File

@ -746,7 +746,7 @@ VPKEntryBlock_t::VPKEntryBlock_t(const uint8_t* pData, size_t nLen, int64_t nOff
size_t nFragmentCount = (nLen + VPK_ENTRY_MAX_LEN - 1) / VPK_ENTRY_MAX_LEN;
size_t nFileSize = nLen;
int64_t nCurrentOffset = nOffset;
uint64_t nCurrentOffset = nOffset;
for (size_t i = 0; i < nFragmentCount; i++) // Fragment data into 1 MiB chunks.
{