提交 ecdd0679 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

size_t type conversion

上级 5ffa3126
......@@ -61,7 +61,7 @@ ssize_t tfwrite(int64_t tfd, const void *buf, size_t count) {
int fd = (int)(uintptr_t)p;
ssize_t ret = write(fd, buf, count);
ssize_t ret = write(fd, buf, (uint32_t)count);
if (ret < 0) terrno = TAOS_SYSTEM_ERROR(errno);
taosReleaseRef(tsFileRsetId, tfd);
......@@ -75,7 +75,7 @@ ssize_t tfread(int64_t tfd, void *buf, size_t count) {
int fd = (int)(uintptr_t)p;
ssize_t ret = read(fd, buf, count);
ssize_t ret = read(fd, buf, (uint32_t)count);
if (ret < 0) terrno = TAOS_SYSTEM_ERROR(errno);
taosReleaseRef(tsFileRsetId, tfd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册