From 07049384aaa9b8ab8c739278d5fff4d4fe2ad5a2 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 8 Nov 2004 16:34:19 +0000 Subject: 2004-11-08 Ognyan Kulev * storeinfo.c (diskfs_S_file_get_storage_info): Cast -1 to store_offset_t in conditional operator, instead of implicitly cast to uint32_t. --- ext2fs/storeinfo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext2fs/storeinfo.c') diff --git a/ext2fs/storeinfo.c b/ext2fs/storeinfo.c index ce7bc534..08b917f3 100644 --- a/ext2fs/storeinfo.c +++ b/ext2fs/storeinfo.c @@ -93,8 +93,10 @@ diskfs_S_file_get_storage_info (struct protid *cred, } run = runs + num_runs++; - run->start = block ?: -1; /* -1 means a hole in OFFSETS */ - run->length = 0; /* will get extended just below */ + /* -1 means a hole in OFFSETS. */ + run->start = block ?: (store_offset_t) -1; + /* The length will get extended just below. */ + run->length = 0; } /* Increase the size of the current run by one filesystem block. */ -- cgit v1.2.3