[TD-6054]<fix>: Filtered by tag with nchar value not as expected

This commit is contained in:
Ganlin Zhao 2021-08-15 23:01:57 +08:00
parent be09ee1411
commit d22530a7f2
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ int32_t compareLenPrefixedWStr(const void *pLeft, const void *pRight) {
memcpy(pLeftTerm, varDataVal(pLeft), len1);
memcpy(pRightTerm, varDataVal(pRight), len2);
int32_t ret = wcsncmp((void *)pLeftTerm, (void *)pRightTerm, len1/TSDB_NCHAR_SIZE);
int32_t ret = wcsncmp((wchar_t*) pLeftTerm, (wchar_t*) pRightTerm, len1/TSDB_NCHAR_SIZE);
tfree(pLeftTerm);
tfree(pRightTerm);