vfs: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
This commit is contained in:
parent
56efe80f85
commit
311e148798
@ -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));
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user