Only part of the problem, Wconversion would complain as well.
Signed-off-by: Andrea Bastoni <[email protected]>
---
hypervisor/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hypervisor/pci.c b/hypervisor/pci.c
index 9274a0b1..6bf5e254 100644
--- a/hypervisor/pci.c
+++ b/hypervisor/pci.c
@@ -24,7 +24,8 @@
#define for_each_configured_pci_device(dev, cell) \
for ((dev) = (cell)->pci_devices; \
- (dev) - (cell)->pci_devices < (cell)->config->num_pci_devices; \
+ ((dev) - (cell)->pci_devices) < \
+ (int)((cell)->config->num_pci_devices); \
(dev)++)
#define for_each_pci_cap(cap, dev, counter) \
--
2.28.0
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-8-andrea.bastoni%40tum.de.