fix
This commit is contained in:
@ -492,7 +492,7 @@ auto remote_server::fuse_read(
|
|||||||
res = -1;
|
res = -1;
|
||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
} else if ((res = has_compat_open_info(handle, EBADF)) == 0) {
|
} else if ((res = has_compat_open_info(handle, EBADF)) == 0) {
|
||||||
res = static_cast<std::decay(res)>(_lseeki64(
|
res = static_cast<std::decay_t(res)>(_lseeki64(
|
||||||
static_cast<int>(handle), static_cast<__int64>(read_offset), SEEK_SET));
|
static_cast<int>(handle), static_cast<__int64>(read_offset), SEEK_SET));
|
||||||
if (res != -1) {
|
if (res != -1) {
|
||||||
data.resize(read_size);
|
data.resize(read_size);
|
||||||
@ -548,7 +548,7 @@ auto remote_server::fuse_write(
|
|||||||
} else {
|
} else {
|
||||||
res = has_compat_open_info(handle, EBADF);
|
res = has_compat_open_info(handle, EBADF);
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
res = static_cast<std::decay(res)>(
|
res = static_cast<std::decay_t(res)>(
|
||||||
_lseeki64(static_cast<int>(handle),
|
_lseeki64(static_cast<int>(handle),
|
||||||
static_cast<__int64>(write_offset), SEEK_SET));
|
static_cast<__int64>(write_offset), SEEK_SET));
|
||||||
if (res != -1) {
|
if (res != -1) {
|
||||||
|
Reference in New Issue
Block a user