diff options
author | Eric Blake <eblake@redhat.com> | 2011-08-02 10:03:41 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-08-02 11:57:07 -0600 |
commit | 3faa16ef8eadc6c9988bf113e0b22581ea21c3c9 (patch) | |
tree | a9a59c757f72e24883464a8a513cf860e87bd3bd | |
parent | 088ec98fdcc3073ce678e70949b21f0f626b27f4 (diff) | |
download | libvirt-python-v6-3faa16ef8eadc6c9988bf113e0b22581ea21c3c9.tar.gz libvirt-python-v6-3faa16ef8eadc6c9988bf113e0b22581ea21c3c9.tar.xz libvirt-python-v6-3faa16ef8eadc6c9988bf113e0b22581ea21c3c9.zip |
python: avoid unlikely sign extension bugv0.9.4libvirt-0.9.4-9.el6libvirt-0.9.4-8.el6libvirt-0.9.4-7.el6libvirt-0.9.4-7.2.el6libvirt-0.9.4-7.1.el6libvirt-0.9.4-6.el6libvirt-0.9.4-5.el6libvirt-0.9.4-11.el6libvirt-0.9.4-10.el6
Detected by Coverity; same analysis as for commit f73198df.
* python/libvirt-override.c (libvirt_virDomainGetVcpuPinInfo): Use
correct type.
-rw-r--r-- | libvirt-override.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c index aa84438..b5650e2 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -1114,7 +1114,7 @@ libvirt_virDomainGetVcpuPinInfo(PyObject *self ATTRIBUTE_UNUSED, virNodeInfo nodeinfo; virDomainInfo dominfo; unsigned char *cpumaps; - int cpumaplen, vcpu, pcpu; + size_t cpumaplen, vcpu, pcpu; unsigned int flags; int i_retval; |