diff options
Diffstat (limited to 'common/block.c')
-rw-r--r-- | common/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/block.c b/common/block.c index 1db06cc98d..e40374f79f 100644 --- a/common/block.c +++ b/common/block.c @@ -338,7 +338,7 @@ static struct file_operations block_ops = { int blockdevice_register(struct block_device *blk) { - size_t size = blk->num_blocks * BLOCKSIZE(blk); + loff_t size = (loff_t)blk->num_blocks * BLOCKSIZE(blk); int ret; int i; |