fix compile error on windows

This commit is contained in:
yihaoDeng 2021-01-20 02:42:15 +00:00
parent 9be6fb9b1e
commit 92db1ea6e8
1 changed files with 1 additions and 1 deletions

View File

@ -4400,7 +4400,7 @@ static void freeTableBlockDist(STableBlockDist *pTableBlockDist) {
free(pTableBlockDist);
}
}
static int32_t getPercentileFromSortedArray(const SArray* pArray, float rate) {
static int32_t getPercentileFromSortedArray(const SArray* pArray, double rate) {
int32_t len = (int32_t)taosArrayGetSize(pArray);
if (len <= 0) {
return 0;