diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-03-13 14:20:00 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-03-13 14:20:00 +0100 |
commit | 7c62c1270100f694734c1dbdf40c24ea5c2e2e5f (patch) | |
tree | 9696405d60ba30468a03b4994f3ed265cace3703 | |
parent | 9de5aac7a29564ac0e1574d17d2589eefe8de3e6 (diff) | |
download | plan9front-7c62c1270100f694734c1dbdf40c24ea5c2e2e5f.tar.xz |
kernel: use 64-bit mask to avoid compiler warning in port/pci.c
-rw-r--r-- | sys/src/9/port/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/pci.c b/sys/src/9/port/pci.c index bf5f43af0..af4144533 100644 --- a/sys/src/9/port/pci.c +++ b/sys/src/9/port/pci.c @@ -642,7 +642,7 @@ pciscan(int bno, Pcidev** list, Pcidev *parent) } if(p->rom.size) { if((p->rom.bar & 1) == 0 - || !pcivalidbar(p, p->rom.bar & ~0x7FFUL, p->rom.size)){ + || !pcivalidbar(p, p->rom.bar & ~0x7FFULL, p->rom.size)){ p->rom.bar = 0; pcisetbar(p, PciEBAR0, p->rom.bar); } |