aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs/diskio.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/fs/diskio.c')
-rw-r--r--core/fs/diskio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index 449e12c4..481b59b0 100644
--- a/core/fs/diskio.c
+++ b/core/fs/diskio.c
@@ -12,7 +12,7 @@
static inline sector_t chs_max(const struct disk *disk)
{
- return disk->secpercyl << 10;
+ return (sector_t)disk->secpercyl << 10;
}
static int chs_rdwr_sectors(struct disk *disk, void *buf,