summaryrefslogtreecommitdiff
path: root/ext2fs/storeinfo.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-11-08 16:34:19 +0000
committerMarcus Brinkmann <marcus@gnu.org>2004-11-08 16:34:19 +0000
commit07049384aaa9b8ab8c739278d5fff4d4fe2ad5a2 (patch)
tree6e2852d9dfcde2a87958444e151f3be67598ce67 /ext2fs/storeinfo.c
parent9893465f92553aef7b1e60d4487f11660d37cea4 (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.
Diffstat (limited to 'ext2fs/storeinfo.c')
-rw-r--r--ext2fs/storeinfo.c6
1 files changed, 4 insertions, 2 deletions
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. */