diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 09:03:55 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 15:42:58 +0100 |
commit | 4b51aedfc721eb05c79f2c12c4654a173640009d (patch) | |
tree | 81a7eeca203271c6f1493f1cf6cb56246b75a977 /setup.py | |
parent | 96f8a19bab9df145ab73b26ca2593c62973695c3 (diff) | |
download | libvirt-python-4b51aedfc721eb05c79f2c12c4654a173640009d.tar.gz |
Fix sign compare offendersv9.1.0
In a few places we compare signed and unsigned integers. In
majority of cases it's because the iteration variable is declared
as ssize_t but then in the for() loop it's compared against an
unsigned int. But there is one case where the opposite happens
(libvirt_virDomainSendKey()), or where an UINT_MAX (which is
inherently unsigned) is compared against signed long.
Also, use this opportunity to decrease scope of 'j' variable
inside of libvirt_virDomainInterfaceAddresses().
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions