1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

minor C++-ism

though I really wonder if this is a property worth maintaining.
This commit is contained in:
Yann Collet
2024-09-03 16:54:36 -07:00
parent be659c895e
commit 9e3d270f40

View File

@ -48,7 +48,7 @@ static void initStats(void)
static void addToFingerprint(FingerPrint* fp, const void* src, size_t s)
{
const char* p = src;
const char* p = (const char*)src;
size_t limit = s - HASHLENGTH + 1;
size_t n;
assert(s >= HASHLENGTH);
@ -125,7 +125,7 @@ static void removeEvents(FingerPrint* acc, const FingerPrint* slice)
/* Note: technically, we use CHUNKSIZE, so that's 8 KB */
size_t ZSTD_splitBlock_4k(const void* src, size_t srcSize, size_t blockSizeMax)
{
const char* p = src;
const char* p = (const char*)src;
int penalty = THRESHOLD_PENALTY;
size_t pos = 0;
if (srcSize <= blockSizeMax) return srcSize;