.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@11410 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-10-23 12:02:42 +00:00
commit 7c2dc2074e

View file

@ -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;