Optimize macro posix_fsetsize, use ',' is better [ci build]

This commit is contained in:
halx99 2021-04-26 17:02:16 +08:00
parent 0583f9a4e0
commit ff24bdf192
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@
#define posix_read ::read
#define posix_write ::write
#define posix_fd2fh(fd) (fd)
#define posix_fsetsize(fd, size) ::ftruncate(fd, size); ::lseek(fd, 0, SEEK_SET)
#define posix_fsetsize(fd, size) (::ftruncate(fd, size), ::lseek(fd, 0, SEEK_SET))
#endif
NS_CC_BEGIN
@ -122,4 +122,4 @@ private:
const PXIoF* _iof{};
};
NS_CC_END
NS_CC_END