diff --git a/source/util/src/tsimplehash.c b/source/util/src/tsimplehash.c index db73dac929fdd82c6dd8933214b5bbeaefe74930..062d7a0ae414484b2bbe37898a44d7de97a1ab3d 100644 --- a/source/util/src/tsimplehash.c +++ b/source/util/src/tsimplehash.c @@ -108,7 +108,7 @@ static void* doInternalAlloc(SSHashObj* pHashObj, int32_t size) { taosArrayPush(pHashObj->pHashNodeBuf, &pNewPage); return pNewPage; } else { - void* pPos = (*p) + pHashObj->offset; + void* pPos = (char*)(*p) + pHashObj->offset; pHashObj->offset += size; return pPos; }