fix compile err on windows

This commit is contained in:
yihaoDeng 2023-07-17 11:44:40 +00:00
parent b56e442478
commit 1b8ec19509
1 changed files with 1 additions and 1 deletions

View File

@ -1786,7 +1786,7 @@ void streamScanOperatorDecode(void* pBuff, int32_t len, SStreamScanInfo* pInfo)
}
void* buf = pBuff;
buf = decodeSTimeWindowAggSupp(buf, &pInfo->twAggSup);
int32_t tlen = len - (pBuff - buf);
int32_t tlen = len - ((char *)pBuff - (char *)buf); // fix windows compile error
void* pUpInfo = taosMemoryCalloc(1, sizeof(SUpdateInfo));
int32_t code = pInfo->stateStore.updateInfoDeserialize(buf, tlen, pUpInfo);