summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-06 10:09:31 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-06 10:11:02 -0700
commit3bf035fcfd0ad55220f484f7fb5d5f18690bdb10 (patch)
tree367d52a80d9aaca6ee48acbc9051b244682b500d /src
parent883acb4bf30735c7d8f3147341345fa9e3bc76b2 (diff)
downloadlibpciaccess-3bf035fcfd0ad55220f484f7fb5d5f18690bdb10.tar.gz
libpciaccess-3bf035fcfd0ad55220f484f7fb5d5f18690bdb10.tar.bz2
libpciaccess-3bf035fcfd0ad55220f484f7fb5d5f18690bdb10.zip
pci_device_solx_devfs_probe: implicit conversion changes signedness warnings
solx_devfs.c:615:32: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] for (i = 0; i < len; i = i + CELL_NUMS_1275) { ~ ~~^~~~~~~~~~~~~~~~ solx_devfs.c:615:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] for (i = 0; i < len; i = i + CELL_NUMS_1275) { ^ ~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/solx_devfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solx_devfs.c b/src/solx_devfs.c
index b365de9..41f5c19 100644
--- a/src/solx_devfs.c
+++ b/src/solx_devfs.c
@@ -612,7 +612,7 @@ pci_device_solx_devfs_probe( struct pci_device * dev )
* slot1 is part of BAR 0x10
* Linux give two region slot for 64 bit address.
*/
- for (i = 0; i < len; i = i + CELL_NUMS_1275) {
+ for (i = 0; i < len; i = i + (int)CELL_NUMS_1275) {
reg = (pci_regspec_t *)&regbuf[i];
ent = reg->pci_phys_hi & 0xff;