summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/fat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fat.h b/include/fat.h
index 7dada411e5..09e1423685 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -180,7 +180,7 @@ static inline u32 clust_to_sect(fsdata *fsdata, u32 clust)
return fsdata->data_begin + clust * fsdata->clust_size;
}
-static inline u32 sect_to_clust(fsdata *fsdata, u32 sect)
+static inline u32 sect_to_clust(fsdata *fsdata, int sect)
{
return (sect - fsdata->data_begin) / fsdata->clust_size;
}