summaryrefslogtreecommitdiffstats
path: root/payloads/coreinfo/pci_module.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-28 10:58:56 -0600
committerMartin Roth <martinroth@google.com>2019-07-07 20:19:49 +0000
commita711e9c44dfc0c50dd1a05a8cf34d393093300b4 (patch)
treef32d68a7e1cf549bbf0ad919fc63826afb94d652 /payloads/coreinfo/pci_module.c
parent37bec0b3971efa18f6fcc405edfb4272d215752d (diff)
downloadcoreboot-a711e9c44dfc0c50dd1a05a8cf34d393093300b4.tar.gz
coreboot-a711e9c44dfc0c50dd1a05a8cf34d393093300b4.tar.bz2
coreboot-a711e9c44dfc0c50dd1a05a8cf34d393093300b4.zip
payloads/coreinfo: Use correct integer types for loop indices
Make sure that the type of the loop index matches the type of the upper bound. This fixes several -Wsign-compare warnings. Change-Id: I73a88355d86288609e03f7a6fcaec14dfedac203 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33863 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'payloads/coreinfo/pci_module.c')
-rw-r--r--payloads/coreinfo/pci_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/coreinfo/pci_module.c b/payloads/coreinfo/pci_module.c
index 3060161fe03c..cb53ed69f712 100644
--- a/payloads/coreinfo/pci_module.c
+++ b/payloads/coreinfo/pci_module.c
@@ -51,7 +51,7 @@ static void swap(struct pci_devices *a, struct pci_devices *b)
static int partition(struct pci_devices *list, int len)
{
- int val = list[len / 2].device;
+ pcidev_t val = list[len / 2].device;
int index = 0;
int i;