vfs: fixed two warnings.

* warnings about comparison between signed and unsigned integer expressions.
This commit is contained in:
Jérôme Duval 2013-04-29 20:57:34 +02:00
parent 56efe80f85
commit 311e148798
2 changed files with 2 additions and 2 deletions

View File

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

View File

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