aboutsummaryrefslogtreecommitdiff
path: root/fat_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'fat_free.c')
-rw-r--r--fat_free.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fat_free.c b/fat_free.c
index 6d49018..f7c1d5b 100644
--- a/fat_free.c
+++ b/fat_free.c
@@ -50,7 +50,7 @@ int fat_free(Stream_t *Dir, unsigned int fat)
int fatFreeWithDir(Stream_t *Dir, struct directory *dir)
{
- unsigned int first;
+ uint32_t first;
if((!strncmp(dir->name,". ",8) ||
!strncmp(dir->name,".. ",8)) &&
@@ -61,7 +61,7 @@ int fatFreeWithDir(Stream_t *Dir, struct directory *dir)
first = START(dir);
if(fat32RootCluster(Dir))
- first |= STARTHI(dir) << 16;
+ first |= (uint32_t) STARTHI(dir) << 16;
return fat_free(Dir, first);
}
@@ -69,4 +69,3 @@ int fatFreeWithDirentry(direntry_t *entry)
{
return fatFreeWithDir(entry->Dir, &entry->dir);
}
-