From 54a50d66e5372a87f6a90a22214a897d081bcfe9 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Fri, 6 Nov 2020 00:54:51 +0000 Subject: [PATCH] type conversion --- src/util/src/tfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tfile.c b/src/util/src/tfile.c index c3becef82c..0324a5bae8 100644 --- a/src/util/src/tfile.c +++ b/src/util/src/tfile.c @@ -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); -- GitLab