type conversion

This commit is contained in:
Jeff Tao 2020-11-06 00:54:51 +00:00
parent 10e951eb2e
commit 54a50d66e5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ int64_t tfopen(const char *pathname, int flags) {
return -1;
}
void *p = (void *)(long)fd;
void *p = (void *)(int64_t)fd;
int64_t rid = taosAddRef(tsFileRsetId, p);
if (rid < 0) close(fd);