mirror of
https://github.com/opnsense/src.git
synced 2026-02-27 20:01:13 -05:00
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 | ||