mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@11410 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
93e8f74b1e
commit
7c2dc2074e
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ String FastCompress(const void *s, int sz)
|
|||
Panic("Compress result is too big!");
|
||||
StringBuffer b((int)maxsize + sizeof(int));
|
||||
*(int *)~b = sz;
|
||||
int clen = LZ4_compress_default((const char *)s, ~b + sizeof(int), sz, maxsize);
|
||||
int clen = LZ4_compress_default((const char *)s, ~b + sizeof(int), sz, (int)maxsize);
|
||||
b.SetCount(clen + sizeof(int));
|
||||
b.Shrink();
|
||||
return b;
|
||||
|
|
|
|||
Loading…
Reference in a new issue