From 311e148798ae4738157c39ab7783b63e70203192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 29 Apr 2013 20:57:34 +0200 Subject: [PATCH] vfs: fixed two warnings. * warnings about comparison between signed and unsigned integer expressions. --- src/system/kernel/fs/vfs.cpp | 2 +- src/system/kernel/fs/vfs_request_io.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);