size_t type conversion

This commit is contained in:
Jeff Tao 2020-11-06 01:20:53 +00:00
parent 5ffa312614
commit ecdd067900
1 changed files with 2 additions and 2 deletions

View File

@ -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);