python: avoid unlikely sign extension bug

Detected by Coverity; same analysis as for commit f73198df.

* python/libvirt-override.c (libvirt_virDomainGetVcpuPinInfo): Use
correct type.
This commit is contained in:
Eric Blake 2011-08-02 10:03:41 -06:00
parent 3157d78f52
commit 6915439794
1 changed files with 1 additions and 1 deletions

View File

@ -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;