mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
d4621eac57
by removing parentheses. The main bug is in gcc: on machines with 64-bit longs and 64-bit long longs, (unsigned long long)rdp->total_sectors / ((1024L * 1024L) / DEV_BSIZE)) has type plain unsigned long instead of the correctly promoted type unsigned long long, so it can not be printfed using %llu format. Even 1ULL / 1L is mispromoted. Anyway, casting the correct operand automatically avoids the problem. We do not want to to pessimize the division; we just want to convert to a common maximal type for printing. |
||
---|---|---|
.. | ||
ata-all.c | ||
ata-all.h | ||
ata-card.c | ||
ata-disk.c | ||
ata-disk.h | ||
ata-dma.c | ||
ata-isa.c | ||
ata-pci.c | ||
ata-raid.c | ||
ata-raid.h | ||
atapi-all.c | ||
atapi-all.h | ||
atapi-cd.c | ||
atapi-cd.h | ||
atapi-fd.c | ||
atapi-fd.h | ||
atapi-tape.c | ||
atapi-tape.h |