mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
bc54931408
commit
aac8c84442
@ -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 nFragmentCount = (nLen + VPK_ENTRY_MAX_LEN - 1) / VPK_ENTRY_MAX_LEN;
|
||||||
size_t nFileSize = nLen;
|
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.
|
for (size_t i = 0; i < nFragmentCount; i++) // Fragment data into 1 MiB chunks.
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user