mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
attempt to fix the wrong display of uploaded size for files > 4Gb (to be confirmed)
This commit is contained in:
parent
4c5c09cbc8
commit
1b5d31ff7f
1 changed files with 2 additions and 2 deletions
|
@ -324,9 +324,9 @@ class CompressedChunkMap
|
||||||
uint32_t residue = total_size%chunk_size ;
|
uint32_t residue = total_size%chunk_size ;
|
||||||
|
|
||||||
if(residue && operator[](nbchks-1))
|
if(residue && operator[](nbchks-1))
|
||||||
return (filledChunks(nbchks)-1)*chunk_size + (total_size%chunk_size) ;
|
return (filledChunks(nbchks)-1)*(uint64_t)chunk_size + (total_size%chunk_size) ;
|
||||||
else
|
else
|
||||||
return filledChunks(nbchks)*chunk_size ;
|
return filledChunks(nbchks)*(uint64_t)chunk_size ;
|
||||||
}
|
}
|
||||||
inline bool operator[](uint32_t i) const { return (_map[i >> 5] & (1 << (i & 31))) > 0 ; }
|
inline bool operator[](uint32_t i) const { return (_map[i >> 5] & (1 << (i & 31))) > 0 ; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue