def->individualvcpus = true;
- while ((next = virBitmapNextSetBit(map, next)) > 0) {
+ while ((next = virBitmapNextSetBit(map, next)) >= 0) {
if (!(vcpu = virDomainDefGetVcpu(def, next)))
continue;
return NULL;
/* make sure that all selected vcpus are in the correct state */
- while ((next = virBitmapNextSetBit(map, next)) > 0) {
+ while ((next = virBitmapNextSetBit(map, next)) >= 0) {
if (!(vcpu = virDomainDefGetVcpu(def, next)))
continue;
/* Make sure that all vCPUs belonging to a single hotpluggable entity were
* selected and then de-select any sub-threads of it. */
next = -1;
- while ((next = virBitmapNextSetBit(map, next)) > 0) {
+ while ((next = virBitmapNextSetBit(map, next)) >= 0) {
if (!(vcpu = virDomainDefGetVcpu(def, next)))
continue;