diff --git a/fs/fat/fs_fat32util.c b/fs/fat/fs_fat32util.c index 1831e9fc29..a4a01d2f79 100644 --- a/fs/fat/fs_fat32util.c +++ b/fs/fat/fs_fat32util.c @@ -986,7 +986,7 @@ int fat_putcluster(struct fat_mountpt_s *fs, uint32_t clusterno, /* Save the LS four bits of the next cluster */ value = (fs->fs_buffer[fatindex] & 0x0f) | - nextcluster << 4; + (uint8_t)nextcluster << 4; } else {