#1014 [TBASE-1376]

This commit is contained in:
slguan 2019-12-25 18:43:52 +08:00
parent 365795cae8
commit dab5d07355
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ int tasoUcs4Compare(void* f1_ucs4, void *f2_ucs4, int bytes) {
#endif
#else
return wcsncmp((wchar_t *)f1_ucs4, (wchar_t *)f2_ucs4, bytes);
return wcsncmp((wchar_t *)f1_ucs4, (wchar_t *)f2_ucs4, bytes / TSDB_NCHAR_SIZE);
#endif
}