summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-13 21:06:54 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-15 21:47:20 +0100
commit220ca26c79398f99d5f514604ca34cb528f59e62 (patch)
treeccc8743069383f825c4f47738fd692280e0f892a /device
parentfcda4718b1b8135d0d484f97bddaa683292b97c1 (diff)
device/dev_pager.c (device_pager_data_request_done): cast to size_t instead to unsigned
* device/dev_pager.c (device_pager_data_request_done) (memset) (io_residual): Cast to size_t instead to unsigned.
Diffstat (limited to 'device')
-rw-r--r--device/dev_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/dev_pager.c b/device/dev_pager.c
index b9796ca..7c3e088 100644
--- a/device/dev_pager.c
+++ b/device/dev_pager.c
@@ -416,7 +416,7 @@ boolean_t device_pager_data_request_done(io_req_t ior)
if (device_pager_debug)
printf("(device_pager)data_request_done: r: 0x%lx\n", ior->io_residual);
memset((&ior->io_data[ior->io_count - ior->io_residual]), 0,
- (unsigned) ior->io_residual);
+ (size_t) ior->io_residual);
}
} else {
size_read = ior->io_count - ior->io_residual;