diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c index 7720d1bb18dc..0ad95e1d25bf 100644 --- a/sys/boot/i386/libi386/biosdisk.c +++ b/sys/boot/i386/libi386/biosdisk.c @@ -172,7 +172,7 @@ bd_init(void) for (unit = base; (nbdinfo < MAXBDDEV); unit++) { /* check the BIOS equipment list for number of fixed disks */ if((base == 0x80) && - (nfd >= *(unsigned short *)PTOV(BIOS_NUMDRIVES))) + (nfd >= *(unsigned char *)PTOV(BIOS_NUMDRIVES))) break; bdinfo[nbdinfo].bd_unit = unit;