fix windows compile issure

This commit is contained in:
Hongze Cheng 2021-03-12 16:46:25 +08:00
parent 08069541f4
commit 15b039d2ed
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@
#define TSDB_MAX_SUBBLOCKS 8
static FORCE_INLINE int TSDB_KEY_FID(TSKEY key, int32_t days, int8_t precision) {
if (key < 0) {
return -((-key) / tsMsPerDay[precision] / days + 1);
return (int)(-((-key) / tsMsPerDay[precision] / days + 1));
} else {
return (key / tsMsPerDay[precision] / days);
return (int)((key / tsMsPerDay[precision] / days));
}
}