diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index b4ddee33af..114d6ab7c2 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -3531,7 +3531,7 @@ common_file_io_vec_pages(struct vnode* vnode, void* cookie, for (; fileVecIndex < fileVecCount; fileVecIndex++) { const file_io_vec &fileVec = fileVecs[fileVecIndex]; off_t fileOffset = fileVec.offset; - off_t fileLeft = min_c(fileVec.length, bytesLeft); + off_t fileLeft = min_c(fileVec.length, (off_t)bytesLeft); TRACE(("FILE VEC [%" B_PRIu32 "] length %" B_PRIdOFF "\n", fileVecIndex, fileLeft)); diff --git a/src/system/kernel/fs/vfs_request_io.cpp b/src/system/kernel/fs/vfs_request_io.cpp index afa5b0659b..4a7984d94a 100644 --- a/src/system/kernel/fs/vfs_request_io.cpp +++ b/src/system/kernel/fs/vfs_request_io.cpp @@ -167,7 +167,7 @@ do_iterative_fd_io_iterate(void* _cookie, io_request* request, size_t subRequestCount = 0; for (size_t i = 0; i < vecCount && subRequestCount < kMaxSubRequests; i++) { off_t vecOffset = vecs[i].offset; - off_t vecLength = min_c(vecs[i].length, requestLength); + off_t vecLength = min_c(vecs[i].length, (off_t)requestLength); TRACE_RIO("[%ld] vec %lu offset: %lld, length: %lld\n", find_thread(NULL), i, vecOffset, vecLength);