diff --git a/kernel/initdisk.c b/kernel/initdisk.c index 5777ec5..bc9fdeb 100644 --- a/kernel/initdisk.c +++ b/kernel/initdisk.c @@ -469,7 +469,7 @@ VOID CalculateFATData(ddt FAR * pddt, ULONG NumSectors, UBYTE FileSystem) * not really present cluster. */ clust = (fatdata - defbpb->bpb_nfat * fatlength) / defbpb->bpb_nsector; - maxclust = (fatlength * defbpb->bpb_nbyte) / 2; + maxclust = ((unsigned long)fatlength * defbpb->bpb_nbyte) / 2; if (maxclust > FAT16MAX) maxclust = FAT16MAX; DebugPrintf(("FAT16: #clu=%lu, fatlen=%u, maxclu=%lu, limit=%u\n",