diff --git a/src/util/src/tcompare.c b/src/util/src/tcompare.c index dbb4c87369aab872e4da7539892caf89c0eb27b4..56d03cc394abda2788d2050d43b111a4212d5a9c 100644 --- a/src/util/src/tcompare.c +++ b/src/util/src/tcompare.c @@ -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);