diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-11-08 16:34:19 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2004-11-08 16:34:19 +0000 |
commit | 07049384aaa9b8ab8c739278d5fff4d4fe2ad5a2 (patch) | |
tree | 6e2852d9dfcde2a87958444e151f3be67598ce67 | |
parent | 9893465f92553aef7b1e60d4487f11660d37cea4 (diff) |
2004-11-08 Ognyan Kulev <ogi@fmi.uni-sofia.bg>
* storeinfo.c (diskfs_S_file_get_storage_info): Cast -1 to
store_offset_t in conditional operator, instead of implicitly cast
to uint32_t.
-rw-r--r-- | ext2fs/ChangeLog | 6 | ||||
-rw-r--r-- | ext2fs/storeinfo.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ext2fs/ChangeLog b/ext2fs/ChangeLog index 76fefc6c..5594aaf2 100644 --- a/ext2fs/ChangeLog +++ b/ext2fs/ChangeLog @@ -1,3 +1,9 @@ +2004-11-08 Ognyan Kulev <ogi@fmi.uni-sofia.bg> + + * storeinfo.c (diskfs_S_file_get_storage_info): Cast -1 to + store_offset_t in conditional operator, instead of implicitly cast + to uint32_t. + 2004-01-10 Roberto Reale <rreale@iol.it> * ext2fs.h (ext2_getblk): Fix typo in comment. 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. */ |